On 11/15/22 11:37, Manoussakis, Adamandios via Tech-talk wrote:
2012-012-27*T18:00:00.000-000Z *or have the offset in the request 2012-012-27*T10:00:00.000-800Z. *But either way it looks like I need to account timezone/dst for the request, unless I am misunderstanding something horribly.
When providing an offset, leave off the trailing "Z".
On a Linux host, run:
$ date -Isec
2022-11-16T20:50:55-08:00
to see an example for your currently configured place
and time.
As others have said, I think you would do better to
delegate this conversion to a timezone database, as
accessed through your API of choice, and send only UTC
times over the wire.
fyi. On Linux, it is easy enough to override timezone on
a per-process basis with the $TZ environment variable.
$ TZ=Brazil/East date -Isec
2022-11-17T01:55:20-03:00
cf. /usr/share/zoneinfo/ and "man tzset"
- Replies:
- RE: Epics Archiver Appliance requests and DST/Timezones Manoussakis, Adamandios via Tech-talk
- References:
- Epics Archiver Appliance requests and DST/Timezones Manoussakis, Adamandios via Tech-talk
- RE: Epics Archiver Appliance requests and DST/Timezones Abdalla Ahmad via Tech-talk
- Re: Epics Archiver Appliance requests and DST/Timezones Ralph Lange via Tech-talk
- RE: Epics Archiver Appliance requests and DST/Timezones Manoussakis, Adamandios via Tech-talk
- Navigate by Date:
- Prev:
RE: Re: [EXTERNAL] Phoebus: Find/Replace and Write XML file Liu, Wanming via Tech-talk
- Next:
Re: RE: Re: [EXTERNAL] Phoebus: Find/Replace and Write XML file 吴煊 via Tech-talk
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
<2022>
2023
2024
- Navigate by Thread:
- Prev:
RE: Epics Archiver Appliance requests and DST/Timezones Abdalla Ahmad via Tech-talk
- Next:
RE: Epics Archiver Appliance requests and DST/Timezones Manoussakis, Adamandios via Tech-talk
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
<2022>
2023
2024
|