postaljs / postal.js

JavaScript pub/sub library supporting advanced subscription features, and several helpful add-ons.
http://ifandelse.com
MIT License
2.83k stars 193 forks source link

timeStamp in envelope should honor timezone #194

Open chainhead opened 4 years ago

chainhead commented 4 years ago

Currently, timeStamp in the envelope seems to support UTC only. On server side, at least, the time stamp should be generated with process.env.TZ if set. Else, use UTC.

Perhaps, here is where the change should be applied.