Getting the client’s time zone (and offset) in JavaScript

How can I gather the visitor’s time zone information?

I need both:

  1. the time zone (for example, Europe/London)
  2. and the offset from UTC or GMT (for example, UTC+01)

32 s
32

Leave a Comment