ffmpeg_opt: Check for localtime() failure