Example #1
0
File: tz.js Project: Coenego/Hilary
 _.each(RailsMappings, function(value, key) {
     var mappingDate = new tz.Date(value);
     railsZones[value] = {
         'displayName': key,
         // Send the offset in hours
         'offset': mappingDate.getTimezoneOffset() / 60
     };
 });
Example #2
0
File: tz.js Project: Coenego/Hilary
 _.each(RailsMappings, function(value, key) {
     var mappingDate = new tz.Date(value);
     var mappingOffset = mappingDate.getTimezoneOffset();
     if (railsOffsets[mappingOffset]) {
         railsOffsets[mappingOffset].push(value);
     } else {
         railsOffsets[mappingOffset] = [value];
     }
 });