+ 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
3 Antworten
+ 1
Save the time as miliseconds since epoch, as far as i remember it doesnt effected by timezone or DST
+ 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.
0
Outs something i want to repeat though, so wouldn't epoch get confused.by DST?