-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
How can I parse a date at a timezone and get back a timestamp in local-time
The date "2016-12-01" in 'America/Aruba' would be at "2016-12-01T05:00:00+01" in norway.
I can not just use the :offset in parse-timestring because I don't know if it is daylight savings time or not before after the date is parsed.
To explain with an example:
In postgresql I do this:
select TIMESTAMP '2016-12-01' at time zone 'America/Aruba';
timezone
------------------------
2016-12-01 05:00:00+01Metadata
Metadata
Assignees
Labels
No labels