Hacker News new | past | comments | ask | show | jobs | submit login

Which JavaScript function? The two main ones return two differing results for my browser.

  Intl.DateTimeFormat().resolvedOptions().timeZone

  > "Australia/Melbourne"
Which is UTC +11.

   new Date().getTimezoneOffset()

   > -710
Which is roughly UTC +11.8.

If you're going to shoebox me into a particular timezone - tell me what it is, and let me change it.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: