Try time zone fix again.
authorCameron McCormack <cam@mcc.id.au>
Sat, 18 Aug 2012 18:05:44 +1000
changeset 49 663aa82ee195
parent 48 ebd1897ec1af
child 50 19fdd6572411
Try time zone fix again.
publish/config.js
--- a/publish/config.js	Sat Aug 18 18:02:45 2012 +1000
+++ b/publish/config.js	Sat Aug 18 18:05:44 2012 +1000
@@ -199,13 +199,13 @@
   },
 
   get publicationYear() {
-    return this._publicationDate.getFullYear();
+    return this._publicationDate.getUTCFullYear();
   },
 
   get publicationDate() {
     var months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
     var d = this._publicationDate;
-    return (d.getDate() < 10 ? '0' : '') + d.getDate() + ' ' + months[d.getMonth()] + ' ' + d.getFullYear();
+    return (d.getUTCDate() < 10 ? '0' : '') + d.getUTCDate() + ' ' + months[d.getUTCMonth()] + ' ' + d.getUTCFullYear();
   },
 
   get thisVersion() {