Mercurial > snowl
changeset 340:27b518a266e8 snowl-release-0.2pre2
leave received timestamps as Date objects instead of converting them to integer values (and then converting them back before actually using them)
author | Myk Melez <myk@mozilla.org> |
---|---|
date | Mon, 20 Oct 2008 10:12:01 -0700 |
parents | 34e356b4461e |
children | 1bc3f8c88501 |
files | modules/collection.js modules/message.js |
diffstat | 2 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/modules/collection.js Mon Oct 20 10:11:05 2008 -0700 +++ b/modules/collection.js Mon Oct 20 10:12:01 2008 -0700 @@ -257,8 +257,7 @@ SnowlUtils.julianToJSDate(statement.row.timestamp), (statement.row.read ? true : false), statement.row.authorIcon, - // FIXME: leave this as a JS Date object. - SnowlUtils.julianToJSDate(statement.row.received).getTime()); + SnowlUtils.julianToJSDate(statement.row.received)); this._messages.push(message); this._messageIndex[message.id] = message; }
--- a/modules/message.js Mon Oct 20 10:11:05 2008 -0700 +++ b/modules/message.js Mon Oct 20 10:12:01 2008 -0700 @@ -89,8 +89,7 @@ SnowlUtils.julianToJSDate(statement.row.timestamp), (statement.row.read ? true : false), statement.row.authorIcon, - // FIXME: leave this as a JS Date object. - SnowlUtils.julianToJSDate(statement.row.received).getTime()); + SnowlUtils.julianToJSDate(statement.row.received)); } } finally {