fix strftime handling of out-of-range struct tm fields