Fix nil-undefined method strftime