+ 1

How would I write a time zone converter to put into an API uri in UTC time that is dst aware.

Connectwise URI requires time in UTC and i want to get all tickets that are scheduled on a day. So 0000 to 2359 ACDT. I could write it hardcoded quite easily, but when DST finishes it will be off by 1 hour. PYTZ just confused me on its doco

18th Nov 2018, 7:26 AM
Mathew Clark
Mathew Clark - avatar
3 Answers
+ 1
Save the time as miliseconds since epoch, as far as i remember it doesnt effected by timezone or DST
18th Nov 2018, 7:53 AM
Taste
Taste - avatar
+ 1
Oooh i'm sorry, it seems i mis understood something, thought you'll send the time using urlor something. PYTZ should be smart enough to handle DST, no need to worry.
19th Nov 2018, 5:20 AM
Taste
Taste - avatar
0
Outs something i want to repeat though, so wouldn't epoch get confused.by DST?
19th Nov 2018, 12:55 AM
Mathew Clark
Mathew Clark - avatar