debian-mirror-gitlab/config/initializers/date_time_formats.rb

14 lines
378 B
Ruby
Raw Normal View History

2021-03-11 19:13:27 +05:30
# frozen_string_literal: true
# :short - 10 Nov
# :medium - Nov 10, 2007
# :long - November 10, 2007
Date::DATE_FORMATS[:medium] = '%b %-d, %Y'
2018-03-17 18:26:18 +05:30
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'
2018-03-17 18:26:18 +05:30
Time::DATE_FORMATS[:csv] = '%Y-%m-%d %H:%M:%S'