question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Timezone list and guess time zone feature

See original GitHub issue

Is there a feature or a plugin through we can get the list of time zones e.g. in moment-timezone we can get the list of time zones from momentTz.tz.names()

Also can we guess the timezone using dayjs ? momentTz.tz.guess()

Are these features available currently in dayjs or are there workarounds to get them without using momentTz.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:20 (4 by maintainers)

github_iconTop GitHub Comments

27reactions
justingolden21commented, Oct 19, 2021

Is there a way to list all timezones?

14reactions
raoufswecommented, Sep 4, 2020

The timezone plugin looks great so far. I’m wondering if there is a way to list all timezones yet?

I’m thinking of something like dayjs.tz.names()

Read more comments on GitHub >

github_iconTop Results From Across the Web

Moment Timezone | Docs
To get a list of time zones for some country, use moment.tz.zonesForCountry() . moment.tz.zonesForCountry('US');. By default this method returns zone names ...
Read more >
How to get list of all timezones in javascript - Stack Overflow
The list of time zones is grouped to reduce the number of time zones. We do grouping only when: same country AND same...
Read more >
It's Time We Addressed Time-Zone Selectors
A search feature allows users to search by items appearing in the list. An open timezone selector dropdown displays timezones ordered by GMT ......
Read more >
Timezone list and guess time zone feature #695 - Issuehunt
Is there a feature or a plugin through we can get the list of time zones e.g. in moment-timezone we can get the...
Read more >
Guessing user zone
Guessing user zone. Return the user's time zone. This dependent on Timezone plugin to work. dayjs.extend(utc) dayjs.extend(timezone) dayjs.tz.guess() ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found