Fix incorrect format in xml dates

Dates where using (some years ago) iso8601 without taking the timezone
into account, as reported in:

https://github.com/openSUSE/osem/issues/1188

When trying to fix the issue, the date was converted to an incorrect
format which took timezone into account in:

73a6e06fd3

Come back to use iso8601 but taking the timezone into account.

Really fixes https://github.com/openSUSE/osem/issues/1188
Fixes https://github.com/openSUSE/osem/issues/2510
This commit is contained in:
Ana María Martínez Gómez 2019-05-02 16:32:54 +02:00
parent 38d3aa8aa5
commit 0837b34369
No known key found for this signature in database
GPG key ID: EACB9B4BC80C0347

View file

@ -16,7 +16,7 @@
%room{ name: room.name }
- events_in_rooms[room].each do |event|
%event{ guid: event.guid, id: event.id }
%date= time_with_timezone(event.time)
%date= event.time.in_time_zone(@conference.timezone).iso8601
%start= event.time.strftime('%H:%M')
%duration= length_timestamp(event.event_type.length)
%room= event.room.name