Comments (7)
thank you. Yup - I will release a hotfix this afternoon.
appreciate the help.
from spacetime.
I will open a bug to Apple as feedback for Sonoma; at least we'll know if it's something planned or needs fixing on their side.
from spacetime.
We may help you with the implementation if you consider that it should be fixed ;) Maybe you should allow the same approach that you use at timezones-soft in the lookupTz
function or add cet
and cest
as aliases, but we should explore if it happens elsewhere.
from spacetime.
oh my gosh - thank you for the heads-up.
Is this documented anywhere? Yeah, I'm happy to fix this asap.
Yep, at minimum we can add a guard to prevent the runtime error.
Please let me know if you can dig anything up about this change. I can't believe they're returning non-IANAs.
oof!
thank you.
from spacetime.
Since the heads up from one of our customers, we have been trying to reproduce it, and we were able to reproduce it with the last beta updating one of our laptops. At least here where we were getting 'Europe/Madrid', we are getting 'cet'; configuring the timezone manually to 'Europe/Madrid' does not change it back to 'Europe/Madrid' and keeps returning 'cet.'.
We did not find any documentation regarding it... But we are kind of lost on where Apple tracks these types of changes.
Since you have the aliases, maybe we can extend them to include cet
, met
, eet
and wet
and use them to check if the returned value of Intl.DateTimeFormat().resolvedOptions().timeZone
is an alias and return the IANA value of them.
from spacetime.
ok - released a fix for this as 7.4.7
- but would love some help testing it against any variants of this.
Yeah - turns-out there's even-weirder responses than 'CET' from the Intl api, apparently you can get the result 'Factory'
. No idea how, but it appears in:
Intl.supportedValuesOf('timeZone')
I added a test for the Node 18, and Firefox results, but I'm sure there's more to be found. I aliased them to whatever it said in wikipedia. - but please let me know if I've done something foolish. There's always a good chance of this.
cheers
from spacetime.
I'll take a look at both the supported values that I get on Chrome and the values that we get on Sonoma.
from spacetime.
Related Issues (20)
- 'etc/unknown' timezone should fall back on UTC HOT 3
- s.diff(d, 'days') is off by one HOT 4
- Unable to chain .i18n() with .format() methods HOT 1
- Unexpected results near DST 2023 boundaries (Europe/Helsinki) HOT 4
- Month number is always -1 HOT 3
- ISO offset vs IANA code ambiguities HOT 5
- DST Result for "Asia/Tehran" is wrong HOT 1
- [Typescript] Could not find declaration file for module 'spacetime' HOT 1
- dayOfYear in leap years HOT 3
- Failing timezone conversion from Zulu to Europe/Rome HOT 1
- Times of the day seem illogical HOT 9
- week function not working correctly HOT 8
- Specific date is not getting the correct epoch HOT 1
- toNativeDate does not factor in timezone offset HOT 3
- Question about making plugins HOT 4
- The new zone `America/Ciudad_Juarez` is missing HOT 3
- Epoch values not updating for different timezones HOT 4
- Incorrect Africa/Casablanca offset HOT 3
- Daylight savings error with timezone HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spacetime.