Skip to content

Conversation

@ThiefMaster
Copy link
Member

This can happen when a user has has bad timezone data in the DB, typically the case for very old users from times (no pun intended) where we did not properly validate changes to the user's preferred timezone.

(It would of course be nicer to automatically discard such garbage data, but making any changes in that util feels extremely wrong. I will just fix invalid timezones in out DB manually.)

Also memoize session timezone utils, since they get called A LOT when generating the timezone picker...

This can happen when a user has has bad timezone data in the DB,
typically the case for very old users from times (no pun intended) where
we did not properly validate changes to the user's preferred timezone.

Also memoize session timezone utils, since they get called A LOT when
generating the timezone picker...
It was always set to true anyway...
@ThiefMaster ThiefMaster added this to the v3.3 milestone Dec 9, 2024
@ThiefMaster ThiefMaster enabled auto-merge (squash) December 9, 2024 11:28
@ThiefMaster ThiefMaster merged commit 6c3e28c into indico:master Dec 9, 2024
9 checks passed
@ThiefMaster ThiefMaster deleted the invalid-timezone branch December 9, 2024 11:30
AjobK pushed a commit to AjobK/indico that referenced this pull request Dec 19, 2024
* Fail gracefully on invalid session timezone

This can happen when a user has has bad timezone data in the DB,
typically the case for very old users from times (no pun intended) where
we did not properly validate changes to the user's preferred timezone.

Also memoize session timezone utils, since they get called A LOT when
generating the timezone picker...

* Get rid of `as_timezone` arg

It was always set to true anyway...
AjobK pushed a commit to AjobK/indico that referenced this pull request Jan 7, 2025
* Fail gracefully on invalid session timezone

This can happen when a user has has bad timezone data in the DB,
typically the case for very old users from times (no pun intended) where
we did not properly validate changes to the user's preferred timezone.

Also memoize session timezone utils, since they get called A LOT when
generating the timezone picker...

* Get rid of `as_timezone` arg

It was always set to true anyway...
AjobK pushed a commit to AjobK/indico that referenced this pull request Jan 7, 2025
* Fail gracefully on invalid session timezone

This can happen when a user has has bad timezone data in the DB,
typically the case for very old users from times (no pun intended) where
we did not properly validate changes to the user's preferred timezone.

Also memoize session timezone utils, since they get called A LOT when
generating the timezone picker...

* Get rid of `as_timezone` arg

It was always set to true anyway...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants