-
Notifications
You must be signed in to change notification settings - Fork 493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong timezone information in schedule.xml export #1188
Comments
I think that's happening because the time during scheduling is saved in UTC instead of conference timezone, and that's what we should really address. |
@differentreality |
Not really, it is not needed to save the schedules in the conference timezone. If we do so we have to deal with that in all the schedule and that's a lot of changes and we will also complicate the code. I think it is enough to take this into account when exporting schedule.xml |
@Ana06 can i work on this ? |
@nikhilgupta1211 what exactly are you going to work on - what are you going to implement in order to solve this? |
@differentreality i think as @Ana06 said it is not needed to save the schedules in the conference timezone so for this issue we just have to convert the time zone in show.xml.haml to conference time zone which we can do with the help of |
This is a delicate point, what we save in the DB is indeed UTC, but when we schedule something at 9am, this is supposed to be 9am of the conference time. |
If I might comment here... I have no idea how your records are stored in database, but seeing you talk about "conversion" of time gives me the feeling that you're doing it wrong. Please, do not convert datetimes. The database does that for you. If it doesn't, you're doing it wrong. |
@differentreality it is much easier to work on UTC for the schedule, we just have to take care of rendering it properly in the places where we want to include the timezone. |
@Ana06 I did not say otherwise. I am just saying that if the event is scheduled at 9am, the DB records 9am UTC, but what the organizer really means when the event was dropped in the schedule is 9am of local time of wherever the conference is happening, hence when we display the time in schedule.xml we should not convert that time, just not present as UTC. |
@differentreality ok 👍 I understood you wrong 😉 |
@differentreality so a simple fix would be to remove the trailing Z in the xml . |
And how will we know in which timezone those times in the xml are? |
@differentreality We can add a timezone tag in xml to show the conference timezone or we can do
This will convert the timezone to conference timezone without changing the time. |
then just render the timezone of the conference withouf dealing with time changes and offsets. 😉 |
Removed the trailing Z from event.time and added a timezone tag in the xml file
Ok then. And what happens if your conference is today and tomorrow and takes place in Europe? |
Removed the trailing Z from event.time and added a timezone tag in the xml file
What do you exactly mean? |
I was referring to the this-year-magic-weekend with DST change. Is the conference timezone +0100 or +0200 then? Does it work if you plan the conference in February and schedule something for March 26th 10am, is it then magically 11am after DST change (it shouldn't be) and so on. In my experience you get around those problems only if you save every timestamp with timezone. |
Removed the trailing Z from event.time and added a timezone tag in the xml file
Added an application helper method time_with_timezone to return time with the conference timezone
Added an application helper method time_with_timezone to return time with the conference timezone which solves the issue of wrong timezone in scheule.xml
Added an application helper method time_with_timezone to return time with the conference timezone Fixes openSUSE#1188
Fixes #1188 show the conference timezone in show.xml.haml
Added an application helper method `time_with_timezone` to return time with the conference timezone which solves the issue of wrong timezone in `scheule.xml` and `admin/events#show`. Fixes openSUSE#1188
Dates where using (some years ago) iso8601 without taking the timezone into account, as reported in: openSUSE#1188 When trying to fix the issue, the date was converted to an incorrect format which took timezone into account in: openSUSE@73a6e06 Come back to use iso8601 but taking the timezone into account. Really fixes openSUSE#1188 Fixes openSUSE#2510
The element of the elements in the export have an trailing Z indicating UTC while the datetime itself seems to be a local time.
The text was updated successfully, but these errors were encountered: