Angular Moment Timezones

Hi Developers,

Does anybody here have successfully integrated angular moment js with certain timezone assigned to it? I managed to add this plugin to my project, but I need to set a timezone since I am getting a wrong output. Please Help!

Thanks! :slight_smile:

Angular Moment.js uses moment.js so you can use to define your timezones.

Thanks @delta98. But will this work on mobile?

Absolutely, Iā€™m assuming you are just specifying a timezone .tz("Europe/London"); and not needing to auto detect?

Yes. I am trying to fixed the timezone to a certain place.

Read and use .tz("Europe/London");

It worked. I just followed the documentation and imported the moment-timezone.js.

Thank you!