Fixed Mac issue with strftime