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
Unfortunately this needs to be handled on a case-by-case basis as time zone abbreviations are not guaranteed to be unique. What should be done however is allowing end users to pass in a dict which maps time zone abbreviations to time zone instances.
The parse function could detect possible multiple results and display an error in this case. The best example is CST (Central/China/Cuba Standard Time).
Passing a known location information as reference for users (North America or Central America, Asia , Caribbean) could be easy way (for users) to determine Time Zone in case of doubt. The suggested dictionary is also an interesting possibility.
From the documentation:
But parsing in the other side returns an error:
Whereas with Europe/Paris (which is normally equivalent to CEST), it works:
Any workaround except replace before applying ZonedDateTime ?
The text was updated successfully, but these errors were encountered: