Merge branch 'tizen_4.0' into tizen_5.0
[platform/core/api/webapi-plugins.git] / src / time / time_api.js
index 3de42a6..9839b38 100644 (file)
@@ -69,7 +69,7 @@ function _getTimezoneOffset(timestamp, tzName) {
 }
 
 function _getLocalTimezoneOffset(utcTimestamp) {
-    // casting to milliseconds
+    // cast to milliseconds
     return -1 * new Date(utcTimestamp).getTimezoneOffset() * 60 * 1000;
 }
 
@@ -175,15 +175,15 @@ tizen.TZDate = function(p1, p2, day, hours, minutes, seconds, milliseconds, time
                 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;
                 }
@@ -557,8 +557,8 @@ tizen.TZDate.prototype.toString = function() {
 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', {