Open hjoliver opened 5 years ago
See also #2324 for the proposed intention to change the default behaviour:
(Put to someday as no one has actually complained of hitting this problem ... so its low priority).
Some observations (with UTC mode = False
, system timezone BST (+01:00
)):
cycle point format = %Y%m%dT%H%MZ
(strftime syntax):
SequenceDegenerateError
raised2020-01-01T00:00Z
)cycle point format = CCYYMMDDThhmmZ
(ISO 8601 syntax):
2019-12-31T23:00Z
, i.e. 2020-01-01T00:00+01:00
)Update: if the initial cycle point is specified to be 2020-01-01T00:00Z
, the stftime syntax still errors while the ISO syntax still runs ok.
Another thing: the documentation is a bit unclear about how the cycle point format
works with cycle point time zone
. Here is the behaviour I have observed (when using the ISO 8601 syntax):
cycle point format
is used for writing/dumping cycle points only, whereas the cycle point time zone
is used for both inferring cycle points inputted without time zone info and writing/dumpingcycle point format
time zone in preference to the cycle point time zone
(i.e. if both are specified the cycle point time zone
will be used for inferring time zones only)
Describe the bug
The traceback that I accidentally/misleadingly posted in the description of #3369 still suggests a bug:
This validates OK with any combo of
UTC mode = True
andZ
on the cycle point format.But at runtime, it fails with
SequenceDegenerateError
if the cycle point format ends inZ
but the server does not haveUTC mode = True
.Reproduced on master and 7.8.x (probably a long-standing bug).
UTC mode
affects the server clock, and log timestamps etc., but not cycle points.Seems to me, we should be able to have the clock running on local time, but UTC cycle points.