This probably needs a fix in https://foss.heptapod.net/mercurial/mercurial-devel/-/blob/branch/default/mercurial/utils/dateutil.py#L300 maybe a leftover from python2 (now obsolete)