gitlab-org--gitlab-foss/config/initializers/date_time_formats.rb
Rémy Coutable 78faa6e370
Port some non-EE-specific config/ changes to CE
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-01-25 14:14:53 +01:00

11 lines
347 B
Ruby

# :short - 10 Nov
# :medium - Nov 10, 2007
# :long - November 10, 2007
Date::DATE_FORMATS[:medium] = '%b %-d, %Y'
Date::DATE_FORMATS[:csv] = '%Y-%m-%d'
# :short - 18 Jan 06:10
# :medium - Jan 18, 2007 6:10am
# :long - January 18, 2007 06:10
Time::DATE_FORMATS[:medium] = '%b %-d, %Y %-I:%M%P'
Time::DATE_FORMATS[:csv] = '%Y-%m-%d %H:%M:%S'