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
I was trying to parse some dates and noticed that the parse pattern matching for {Zabbr} not working.
Example:
Timex.parse("07/24/2023 05:46:15 AM EDT", "{0M}/{0D}/{YYYY} {h12}:{m}:{s} {AM} {Zabbr}")
But for example the {Zname} works:
Timex.parse("07/24/2023 05:46:15 AM America/New_York", "{0M}/{0D}/{YYYY} {h12}:{m}:{s} {AM} {Zname}")
If you inspect the Timex.Timezone.get("America/New_York").abbreviation it returns EDT, so I am sure that EDT is the {Zabbr}
The "America/New_York" is just an example here, all {Zabbr} are not working.
Hey @everyone.
I was trying to parse some dates and noticed that the parse pattern matching for {Zabbr} not working.
Example:
Timex.parse("07/24/2023 05:46:15 AM EDT", "{0M}/{0D}/{YYYY} {h12}:{m}:{s} {AM} {Zabbr}")
But for example the {Zname} works:
Timex.parse("07/24/2023 05:46:15 AM America/New_York", "{0M}/{0D}/{YYYY} {h12}:{m}:{s} {AM} {Zname}")
If you inspect the Timex.Timezone.get("America/New_York").abbreviation it returns EDT, so I am sure that EDT is the {Zabbr}
The "America/New_York" is just an example here, all {Zabbr} are not working.
Timex version: @Version "3.7.11"
The text was updated successfully, but these errors were encountered: