Throughout the codes, timezone offsets are calculated base on new Date(0), which might be different than timezone offset for new Date().
This cause 30 minutes difference in MYT for example, which have +730 in 1970, and +800 in 2018.
https://en.wikipedia.org/wiki/Time_in_Malaysia
It should be standardized to use timezone calculated from new Date().
Throughout the codes, timezone offsets are calculated base on new Date(0), which might be different than timezone offset for new Date().
This cause 30 minutes difference in MYT for example, which have +730 in 1970, and +800 in 2018.
https://en.wikipedia.org/wiki/Time_in_Malaysia
It should be standardized to use timezone calculated from new Date().