GmailScheduler icon indicating copy to clipboard operation
GmailScheduler copied to clipboard

Time zone issue

Open jaamoe opened this issue 10 years ago • 1 comments

Hello, I have discovered something strange. When you choose say 8 am tomorrow and I have my correct time zone selected (CST for me) it will deliver the email 6 hours before that time. Now, if i choose Greenwich time it will be delivered at the correct time.

this example is set with my correct time zone. screen shot 2015-05-20 at 9 10 47 am

This example is when the time zone is set with greenwich time. screen shot 2015-05-20 at 9 11 17 am

If this is normal I will let it be but if its not I thought I would bring it to your attention. Thank you for creating this script. Other then this issue we love it.

Jason IT Manager Still Serving Veterans

jaamoe avatar May 20 '15 14:05 jaamoe

It seems that the problem is a difference of 6 hours. I got the same problem when I wrote 12pm tomorrow. Here is a log, every line is described here:

  • What I wrote
  • The parsed date (twice)
  • My timezone (America/New_York)
  • The formatted date from Utilities.format(date, tz, format)
  • Full formatted date

screenshot_2016-02-19_15-14-44

Do you think we could solve this by reducing the date hours by 6?

CristhianMotoche avatar Feb 19 '16 20:02 CristhianMotoche