Get publication date right in all time zones.
--- 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) {