diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-01-06 17:27:56 -0500 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-01-07 20:01:08 -0500 |
commit | fa36749bcee7fa2eb72c9f2a6a28aab1b7274097 (patch) | |
tree | ce7eb20119e69fac8cb41f35dd059599b4e71817 /config | |
parent | 59305715e9d3569f47d7c2accc2106022c0a6960 (diff) | |
download | gitlab-ce-fa36749bcee7fa2eb72c9f2a6a28aab1b7274097.tar.gz |
Add two custom Date/Time conversion formats
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/date_time_formats.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/config/initializers/date_time_formats.rb b/config/initializers/date_time_formats.rb new file mode 100644 index 00000000000..57568203cab --- /dev/null +++ b/config/initializers/date_time_formats.rb @@ -0,0 +1,9 @@ +# :short - 10 Nov +# :medium - Nov 10, 2007 +# :long - November 10, 2007 +Date::DATE_FORMATS[:medium] = '%b %-d, %Y' + +# :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' |