linux strftime_l didn't like NULL locales, so we switched to strftime