Fixed wrong date format string for rails