Cleaner datetime localization for xml output
This commit is contained in:
parent
c76c46a104
commit
32298c4980
@ -4,8 +4,8 @@ xml.events do
|
|||||||
@events.find_each do |event|
|
@events.find_each do |event|
|
||||||
xml.event do
|
xml.event do
|
||||||
xml.title event.title
|
xml.title event.title
|
||||||
xml.tag! 'start-time', event.start_time.strftime('%Y/%m/%d %T')
|
xml.tag! 'start-time', l(event.start_time, format: 'xml')
|
||||||
xml.tag! 'end-time', event.end_time.strftime('%Y/%m/%d %T')
|
xml.tag! 'end-time', l(event.end_time, format: 'xml')
|
||||||
xml.place_name event.place_name
|
xml.place_name event.place_name
|
||||||
xml.address event.address
|
xml.address event.address
|
||||||
xml.city event.city
|
xml.city event.city
|
||||||
|
@ -9,3 +9,4 @@ fr:
|
|||||||
formats:
|
formats:
|
||||||
at: '%A %e %B %Y à %Hh%M'
|
at: '%A %e %B %Y à %Hh%M'
|
||||||
hours: '%Hh%M'
|
hours: '%Hh%M'
|
||||||
|
xml: '%Y/%m/%d %T'
|
||||||
|
Loading…
Reference in New Issue
Block a user