You need to URLencode your parameters
https://api.twitch.tv/helix/clips?game_id=’.$game_id.’&started_at=’.urlencode($started_at).’&ended_at=’.urlencode($ended_at).’&first=100&language=’.$lang;
As the + is being interpreted as something else and Twitch is not receiving a RFC3339 date from you.