CurrDate() timezone questions...

CurrDate() timezone questions...

  

Hi, I get it for CurrDateTime() we can use Forge's Time Zone to convert it when displaying in screen.

E.g. for EST timezone (UTC-04:00)

Stored UTC: 2018-04-13 14:00

Displayed EST: 2018-04-13 10:00


For for CurrDate(), there is no time part to convert at.

E.g. for time 2018-04-13 22:00 (EST) == 2018-04-14 02:00 (UTC)

Stored UTC: 2018-04-14

Displayed EST: would be 2018-04-14 too...


Conclusion:

I have to convert when saving date only?

But for datetime I don't have to (because I can convert when displaying)?

From this description, yes it does sound like you would have to convert date at the time of saving.

But it really does depend on the context of why you are storing that date. 

Another way to get around this would be simply always storing a date time instead of straight Date.


For example in the context of an online student turning in an assignment on a certain due date, you wouldn't want the student to see that they turned it on the right date on their end while their professor sees a different date when looking at the same screen.

This time zone things confused me even more when considering Daylight Saving Time.

It's hard to believe Forge's Time Zone conversion will consider DST adjustment at certain hours.