Comments (3)
Moment's isDST
method has a warning in the documentation:
NOTE: This function is a HACK. moment has no way of knowing if a given time is in actual DST or not. Some time changes in a zone are DST related, some are not, and without complete timezone information it can't know.
Moment currently checks the winter and summer time, and if the offset matches the summer offset (and summer off is different than winter off), then it reports DST. This works in vast majority of cases, but as mentioned above, is not "correct" and won't work for all cases.
Because eastern Kazakhstan had a one-off change of time zone, the naive guessing in Moment is being tripped up and thinks it's a DST shift. Although it's unfortunate, it's not something we're likely to fix, given the maintenance-only status of the project.
from moment-timezone.
from moment-timezone.
@sslincoco Please disable your email auto-responder for open source projects.
from moment-timezone.
Related Issues (20)
- How does moment.tz(unixTimestamp,timezone) and moment.tz.guess() work? HOT 1
- How can I use moment-timezone with 10 year data range with Typescript types HOT 1
- Moment Timezone has no data for Europe/Ljubljana
- Kazakhstan will switch to a single time zone, UTC+05:00, on March 1, 2024. HOT 1
- 2024a released HOT 1
- Test failure due to rounding error HOT 2
- Timezone Error in v0.5.45 HOT 2
- Wrong Kazakhstan Timezone in 0.5.45 HOT 1
- Incorrect Timezone Offset for 'Asia/Almaty' HOT 1
- Is there an alternative to moment-timezone with bundled IANA TZ DB? HOT 3
- Getting spilt issue while using moment and moment-timezones HOT 1
- SyntaxError: E:\landlord-front-end\node_modules\.pnpm\[email protected]\node_modules\moment-timezone\data\packed\latest.json: Missing semicolon. HOT 1
- How to get timezone from zipcodes HOT 1
- Weird issue: moment-timezone is subtracting 1 hour from every timezone HOT 2
- Consider a replacement for `moment-timezone-with-data-1970-2030.js` HOT 1
- Moment/moment-timezone
- interpretation of "pm" HOT 1
- Will moment-timezone support harmony? HOT 1
- bug report: moment.tz format has some bug , unexpected year number 0002 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 moment-timezone.