Comments (1)
This is expected. NodeJS only uses the environment variables that it was started with, including time zone. It doesn't update the current time zone dynamically.
Try logging new Intl.DateTimeFormat().resolvedOptions().timeZone
in NodeJS in the same scenario and you'll see that it only changes after a restart. This is common behaviour for a lot of language runtimes.
from moment.
Related Issues (20)
- Typo Mistake in gu.js (in Gujarati Language) HOT 1
- Which one is the official CDN link? HOT 2
- Czech republic localization HOT 5
- Parse from ISO week
- Unexpected behaviour with 'days' unit when using moment.duration?
- cdnjs advertises v2.29.4 with invalid integrity hash HOT 2
- Socket Security: Obfuscated require HOT 2
- Feb29's month is returning as 2 instead of 1 HOT 5
- Format method is returning YYYY in Spanish locale HOT 1
- Using a Global Initial Date with Moment.js in a React Native Application HOT 1
- 2023-05-26 - 'Deprecation warning: value provided is not in a recognized ISO format. moment construction falls back to js Date()' HOT 2
- Drop your support from BLM from the main web page!
- parseZone() seems to have unexpected handling of ambiguous input HOT 3
- Months and Days = "00" HOT 2
- adding, subtracting, duration problems HOT 1
- subtracting about 131 years HOT 1
- Wrong apostrophe sign used in Ukrainian locale HOT 1
- Add support for startOf(multiple, "interval") or startOf(Duration) to get a beginning of the interval as multiple units #5831 HOT 1
- gets wrong date from date string HOT 3
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.