urish / angular-moment

Moment.JS directives for Angular.JS (timeago and more)
MIT License
2.6k stars 397 forks source link

`moment.tz.guess()` guess browser timezone #229

Closed tsturzl closed 8 years ago

tsturzl commented 8 years ago

It seems I can only provide a static timezone regardless of the timezone of the actual browser. This is incredibly inconvenient for any project which has users in more than one timezone(most projects). It makes timezones almost completely impractical. It would be nice if there were a way to invoke moment.tz.guess() instead of passing a timezone string, this function should be able to determine the user's timezone.

If I have time I will send a pull request either today or tomorrow. If someone has a chance to get to it before me please let me know. For now I'm setting the timezone to a static timezone but I know someone will probably ask that to be changed.

prasadh13 commented 7 years ago

Is this implemented? Can't seem to find it..

chorsnell commented 6 years ago

@tsturzl @prasadh13 was this ever resolved?