replace missing gmtime_r on Windows