How do I get the correct DateTime for a DateTimePicker in Google Apps Script?

Viewed 47

Using the DateTimePicker in Google Apps Script, I can have the user choose a date and time, and I can use setTimeZoneOffsetInMins to present a UTC date in the correct time zone.

The problem is that fixed timezones don't obey daylight savings time. I don't know before the user enters the date and time whether they'll be entering a time in EST or EDT, and so the timezone offset is guaranteed to be wrong for about half the year.

Is there a solution?

1 Answers

At the current stage, there is no direct method of achieving your task.

Just like suggested above, the best solution in this situation is to create a feature request on Google's Issue Tracker here and provide all the necessary details.

Reference

Related