Fix use of unsafe localtime()
and portable gmtime_r()
#1481
+18
−12
localtime()
and portable gmtime_r()
#1481