JSDOC/Packer.js
authorAlan Knowles <alan@akbkhome.com>
Fri, 17 Sep 2010 08:07:30 +0000 (16:07 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 17 Sep 2010 08:07:30 +0000 (16:07 +0800)
JSDOC/Packer.js

index 820a20d..61092ed 100644 (file)
@@ -89,12 +89,12 @@ Packer = function(cfg)
         
         function dateString(d){
             function pad(n){return n<10 ? '0'+n : n}
-            return d.getUTCFullYear() +
-                 pad(d.getUTCMonth()+1)+
-                 pad(d.getUTCDate())+'_'+
-                 pad(d.getUTCHours())+
-                 pad(d.getUTCMinutes())+
-                 pad(d.getUTCSeconds());
+            return d.getFullYear() +
+                 pad(d.getMonth()+1)+
+                 pad(d.getDate())+'_'+
+                 pad(d.getHours())+
+                 pad(d.getMinutes())+
+                 pad(d.getSeconds());
         }