LambStatus icon indicating copy to clipboard operation
LambStatus copied to clipboard

Email notification arrives with PST time zone

Open allcloud-ronen opened this issue 5 years ago • 4 comments

I see that the email notification is hard coded to send the time in PST: https://github.com/ks888/LambStatus/blob/ba950df3241ac9143e03411d6c1a06d126cc0180/packages/lambda/src/api/sendEmails/index.js#L230

Wouldn't it make more sense to make it configurable, or at least hardcode it to UTC which is more universal than PST? Thanks.

allcloud-ronen avatar Jan 28 '19 09:01 allcloud-ronen

Thank you for your suggestion. Yes, it makes sense to make it configurable, though personally I can't find the enough time to support it.

Also, UTC hardcoding is certainly better than PST. Fortunately we already have the formatDateTime function in utils/datetime and so the changes should be not so difficult. It's great if you have a chance to contribute the code.

ks888 avatar Feb 03 '19 01:02 ks888

Hello, I'd like to take a stab at it - did you have in mind configuration via env variable or something more advanced?

pgrzesik avatar Apr 01 '19 20:04 pgrzesik

Sorry for my late reply. If we make it configurable, I think it's better if a user can change the time zone via GUI. In the demo page below, it will be useful if the Notification tab contains the time zone setting item. https://demo-admin.lambstatus.org/settings

Env variable may be possible, but most users can't change it because they launch their stack using CloudFormation.

ks888 avatar Apr 23 '19 13:04 ks888

I would also love to see this implemented, and seems like an option in the UI is more along the lines of how LambStatus is used and deployed.

However - regardless of this implementation - I believe the default should be changed from PST, to UTC.

DannyBen avatar Apr 23 '19 13:04 DannyBen