Get publication date right in all time zones.
authorCameron McCormack <cam@mcc.id.au>
Sat, 18 Aug 2012 18:02:45 +1000
changeset 48 ebd1897ec1af
parent 47 ca9311658567
child 49 663aa82ee195
Get publication date right in all time zones.
publish/config.js
publish/processing.js
--- a/publish/config.js	Sat Aug 18 17:40:05 2012 +1000
+++ b/publish/config.js	Sat Aug 18 18:02:45 2012 +1000
@@ -115,7 +115,7 @@
   this.publishDirectory = attr(root, 'output', 'publish-directory');
 
   var pubDate = text(root, 'publication-date')
-  this._publicationDate = pubDate ? new Date(pubDate) : new Date;
+  this._publicationDate = pubDate ? new Date(pubDate + 'Z') : new Date;
 
   var versions = child(root, 'versions');
   this.versions = {
--- a/publish/processing.js	Sat Aug 18 17:40:05 2012 +1000
+++ b/publish/processing.js	Sat Aug 18 18:02:45 2012 +1000
@@ -492,7 +492,7 @@
 }
 
 function doMaturity(conf, page, n) {
-  utils.replace(n, n.ownerDocument.createTextNode(conf.longMaturity));
+  utils.replace(n, n.ownerDocument.createTextNode(conf.longerMaturity));
 }
 
 function doDate(conf, page, n) {