You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I can see, it doesn't matter whether we store identifier or friendly identifier. Only issue might be ambiguity in friendly identifiers, but so far I can't see where that would happen. It's easy enough to convert between friendly_identifier and identifier.
The extra tests I added should help catch any problems already stored in db. I also added a validation to the rails forms - the form will force user to change invalid timezone name before the form will successfully submit.
It appears that the wrong value is persisted to the database for the
tzinfo_tz
value.Instead of
Australia/Sydney
being stored, the friendly valueAustralia - Sydney
value is stored.This causes exceptions when we try and decode the value in the new code from #262 - particularly this line https://github.com/QutBioacoustics/baw-server/blob/6571c40259dff1643778472e7e7d8ea911120935/lib/modules/time_zone_helper.rb#L98
Confirmed problem by manually changing value in database - no longer causes exceptions.
Further:
The text was updated successfully, but these errors were encountered: