fixed error with strftime for nil value dates