1timedatectl
2
3Output
4------------
5 Local time: Tue 2019-12-03 16:30:44 UTC
6 Universal time: Tue 2019-12-03 16:30:44 UTC
7 RTC time: Tue 2019-12-03 16:30:44
8 Time zone: Etc/UTC (UTC, +0000)
9 System clock synchronized: no
10systemd-timesyncd.service active: yes
11 RTC in local TZ: no
1var timedifference = new Date().getTimezoneOffset();
2//This returns the difference from the clients timezone from UTC time. You can then play around with it as you like.
3