Fix bug in utils.strftime for MacOS users