Dismiss
Announcing Stack Overflow Documentation

We started with Q&A. Technical documentation is next, and we need your help.

Whether you're a beginner or an experienced developer, you can contribute.

Sign up and start helping → Learn more about Documentation →

Moment.js guess timezone is temporarily loading UTC then switching to the correct timezone.

I've narrowed it down to what seems to be that webpack is loading the bundle.js file first before moment.tz.guess() gets the correct timezone.

alt text

Look at the loading time, and see how the timezone changes after bundle.js has completed loading.

Any ideas how to resolve this? Kinda out of it today :/

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.