This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Calculate the time zone offset with DST ! | |
* e.g. Prague - if DST enabled ? -60 (summer) : -120 (winter) | |
* | |
* NOTE: this is to be compatible to how Rails helper | |
* time_zone_options_for_select renders zones e.g. : | |
* - in summer (GMT+01:00) Prague | |
* - in winter (GMT+02:00) Prague | |
*/ | |
function getTimeZoneOffsetDST() { |