mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-18 00:00:12 +01:00
parent
e17b495b95
commit
0eec884428
1 changed files with 6 additions and 2 deletions
|
|
@ -170,9 +170,13 @@ module ApplicationHelper
|
||||||
standard_format = current_user.prefs.date_format
|
standard_format = current_user.prefs.date_format
|
||||||
translations = [
|
translations = [
|
||||||
['%m', 'mm'],
|
['%m', 'mm'],
|
||||||
|
['%b', 'M'],
|
||||||
|
['%B', 'MM'],
|
||||||
['%d', 'dd'],
|
['%d', 'dd'],
|
||||||
['%Y', 'yy'],
|
['%a', 'D'],
|
||||||
['%y', 'y']
|
['%A', 'DD'],
|
||||||
|
['%y', 'y'],
|
||||||
|
['%Y', 'yy']
|
||||||
]
|
]
|
||||||
translations.inject(standard_format) do |str, translation|
|
translations.inject(standard_format) do |str, translation|
|
||||||
str.gsub(*translation)
|
str.gsub(*translation)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue