3

I was recently using momentjs but just switched to dayjs. However, I need to get a list of timezones. With momentjs it was pretty simple : moment.tz().names() , but with dayjs I can't figure out how to do it. I don't want to get 500+ timezone, rather I need I shorter, more compact list that taking account winter/summer hours changes.

Any Idea ?

John
  • 179
  • 1
  • 4
  • 13
  • This might give you some insight. https://github.com/iamkun/dayjs/issues/695 – nad Aug 26 '22 at 07:19
  • 1
    Or just don't rely on a library https://stackoverflow.com/q/38399465/295783 `Intl.supportedValuesOf('timeZone')` – mplungjan Aug 26 '22 at 07:20

0 Answers0