New submission from David Grellscheid <d.grellsch...@gmail.com>:
I'm comparing two aware timestamps during a clock transition that differ only in their fold= value. When taking the difference of two aware timestamps with the *same* tzinfo, the fold parameter is ignored. A difference between two timestamps with different tzinfo works correctly, with fold taken into account. For the attached code I would expect all timedeltas to be the same, but I get: 0:00:00 Oslo_1 - Oslo_0 1:00:00 Berlin_1 - Oslo_0 1:00:00 Oslo_1 - Berlin_0 0:00:00 Berlin_1 - Berlin_0 ---------- components: Library (Lib) files: fold_bug.py messages: 378545 nosy: d.grellscheid priority: normal severity: normal status: open title: zoneinfo: fold not taken into account in time difference when tzinfo is equal versions: Python 3.9 Added file: https://bugs.python.org/file49514/fold_bug.py _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42025> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com