Use moment.parseZone()
* Currently messages are stored with TZ offsets * Imported messages with e.g. TZUTC kludges are adjusted * Due to the above, use parseZone() to preserve when loading a message timestamp
This commit is contained in:
parent
e140c98c35
commit
a7e4f5baef
|
@ -634,7 +634,9 @@ module.exports = class Message {
|
||||||
self.fromUserName = msgRow.from_user_name;
|
self.fromUserName = msgRow.from_user_name;
|
||||||
self.subject = msgRow.subject;
|
self.subject = msgRow.subject;
|
||||||
self.message = msgRow.message;
|
self.message = msgRow.message;
|
||||||
self.modTimestamp = moment(msgRow.modified_timestamp);
|
|
||||||
|
// We use parseZone() to *preserve* the time zone information
|
||||||
|
self.modTimestamp = moment.parseZone(msgRow.modified_timestamp);
|
||||||
|
|
||||||
return callback(err);
|
return callback(err);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue