Does the javascript time library moment.js function independent of which browser you are using? I've already experienced issues with Javascripts native Date object behaving differently (mostly regarding timezones) between different browsers, specifically Chrome and IE. I've also read other issues with the javascript Date object not being browser agnostic:
-Problem with date formats in JavaScript with different browsers
-javascript date.parse difference in chrome and other browsers
-etc...
Being that momentjs is a javascript library, I would think that it will function the same independent of which browser is executing it.
Does the javascript time library moment.js function independent of which browser you are using? I've already experienced issues with Javascripts native Date object behaving differently (mostly regarding timezones) between different browsers, specifically Chrome and IE. I've also read other issues with the javascript Date object not being browser agnostic:
-Problem with date formats in JavaScript with different browsers
-javascript date.parse difference in chrome and other browsers
-etc...
Being that momentjs is a javascript library, I would think that it will function the same independent of which browser is executing it.
Share Improve this question edited May 23, 2017 at 12:18 CommunityBot 11 silver badge asked May 19, 2017 at 19:01 big_waterbig_water 3,2422 gold badges29 silver badges47 bronze badges 3- It cannot be independent as it relies on the browser time. But it can try to fix mon bugs... – Jonas Wilms Commented May 19, 2017 at 19:02
- From the documentation: "Currently the following browsers are used for the ci system: Chrome on Windows XP, IE 8, 9, and 10 on Windows 7, IE 11 on Windows 10, latest Firefox on Linux, and latest Safari on OSX 10.8 and 10.11." Those are the browsers they run their unit tests against. – user47589 Commented May 19, 2017 at 19:05
- The answer is Yes. Moment is browser dependent. See this: stackoverflow./questions/53957981/… – smartmouse Commented Feb 1, 2019 at 12:12
1 Answer
Reset to default 6Even though it relies on different ways to provide the same functionality, the behavior should be the same in the browsers they describe in the documentation here:
Moment was designed to work both in the browser and in Node.js.
All code should work in both of these environments, and all unit tests are run in both of these environments.
Currently the following browsers are used for the ci system: Chrome on Windows XP, IE 8, 9, and 10 on Windows 7, IE 11 on Windows 10, latest Firefox on Linux, and latest Safari on OSX 10.8 and 10.11.