}
function _getLocalTimezoneOffset(utcTimestamp) {
- // casting to milliseconds
+ // cast to milliseconds
return -1 * new Date(utcTimestamp).getTimezoneOffset() * 60 * 1000;
}
var offsetObject = _getTimezoneOffset(timezoneTimestamp, timezone);
offset = offsetObject.offset;
utcTimestamp = timezoneTimestamp - offset;
- // correction of missing/extra hour on DST change
+ //correction of missing/extra hour on DST change
var modifier = offsetObject.modifier;
if (modifier > 0) {
- // this is for case when 2AM becomes 3AM
- // (but offset must be corrected - missing one hour)
+ //this is for case when 2AM becomes 3AM (but offset must be
+ //corrected - missing one hour)
offset += modifier;
} else {
- // this is for case when extra hour appers - prevents error of
- // unnecessary shift of hour when timezone changes
+ //this is for case when extra hour appers - prevents error of
+ //unnecessary shift of hour when timezone changes
offset -= modifier;
utcTimestamp += modifier;
}
tizen.TZDate.prototype.getTimezoneAbbreviation = function() {
utils_.log('Entered TZDate.getTimezoneAbbreviation');
utils_.warn(
- 'DEPRECATION WARNING: getTimezoneAbbreviation() is deprecated ' +
- 'and will be removed from next release.'
+ 'DEPRECATION WARNING: getTimezoneAbbreviation() is deprecated and will be ' +
+ 'removed from next release.'
);
var result = native_.callSync('TZDate_getTimezoneAbbreviation', {