Fix bug related to strftime