mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-28 05:26:10 +02:00
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
1 changed files with 3 additions and 1 deletions
|
@ -634,7 +634,9 @@ module.exports = class Message {
|
|||
self.fromUserName = msgRow.from_user_name;
|
||||
self.subject = msgRow.subject;
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue