Event shows two different starttimes when timezone is null #63
Labels
No labels
bug
design
duplicate
enhancement
help wanted
invalid
needs testing on live
nice2have
question
translation
upstream
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: potsda.mn/mobilizon#63
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
the time above (18:00) and below (17:00) do not match.
I can reproduce it with this event
Different Start Timesto Event shows two different starttimes when timezone is nullSo I continued looking into this issue and the way Mobilizon handles timezones is just a huge mess.
For once, there is inconsistent rendering of datetimes in the
StartTimeIcon
and theEventFullDate
component, that seems to only show when the timezone of an event in theevent_options
field isnull
. The StartTimeIcon is actually correct here, assuming thatnull
= UTC, but a quick survey shows that users seem to enter their date wrongly as Europe/Berlin, even though timezone remains null.A complete fix of timezone handling would probably require changes to the database schema, not looking forward to do that.
But there are few tweaks we can do ourselves:
events
in the db to Europe/Berlin. This would also touch thebegins_on
andends_on
fields.timezone
field in tableuser_settings
for all existing users fromnull
toEurope/Berlin
. This would at least make events that are created by existing users in the future work.Don't really know how to fix this for newly created users creating new events tho, except for running these scripts again and again.
I just defaulted the timezone for all existing users to
Europe/Berlin
:Not a solution, but should make the current problem a lot less impactful.
We added a fix that should at least make the situation bearable, when the timezone of the creator and the viewer both isn't null, but only conflicting. The old default was to show the creators timezone, now we show the viewers timezone by default.
The hard issue (when timezone is null) still persists, but the impact should be way less now.