Node.js based forum software built for the modern web
monkey-patching getPostsByPids so that it returns ISOString instead of relativeTime
Julian Lamcdaf409a9916
diff --git a/src/posts.js b/src/posts.jsindex ab9bacd67b..d3a804acf6 100644--- a/src/posts.js+++ b/src/posts.js@@ -170,10 +170,10 @@ var RDB = require('./redis.js'),multi.exec(function (err, replies) {async.eachSeries(replies, function(postData, _callback) {if(postData) {- postData.relativeTime = utils.relativeTime(postData.timestamp);+ postData.relativeTime = new Date(parseInt(postData.timestamp,10)).toISOString();postData.post_rep = postData.reputation;postData['edited-class'] = postData.editor !== '' ? '' : 'none';- postData['relativeEditTime'] = postData.edited !== '0' ? utils.relativeTime (postData.edited) : '';+ postData['relativeEditTime'] = postData.edited !== '0' ? (new Date(parseInt(postData.edited,10)).toISOString()) : '';if(postData.uploadedImages) {try {