-
Notifications
You must be signed in to change notification settings - Fork 0
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
DBC22-3158: used timezone data coming from DIT #783
base: main
Are you sure you want to change the base?
Conversation
d38df28
to
76e20a5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I get the following error when clicking on an event on the map:
FriendlyTime.js:25 Uncaught RangeError: Invalid time zone specified: null
at new DateTimeFormat ()
at formatDate (FriendlyTime.js:25:1)
Yes there is a logic error in the code where I will get it fixed. But I noticed the tasks container can't be started correctly and the events can't be populated due to the tasks error. 7 Traceback (most recent call last): |
DBC22-3158: updated timezone for chain ups
src/backend/apps/event/tasks.py
Outdated
@@ -148,6 +147,8 @@ def populate_all_event_data(): | |||
for chain_up in chain_ups: | |||
active_event_ids.append(chain_up.validated_data['id']) | |||
chain_up.save() | |||
tz=chain_up.validated_data['first_created'].tzinfo.key | |||
Event.objects.filter(id=chain_up.validated_data['id']).update(timezone=tz) | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we go over this? I don't understand what we're trying to achieve here
DBC22-3158: rework done
DBC22-3158: used timezone data coming from DIT