Use strftime for logging time