Skip to content

dateadd calculations with time zone flags return incorrect results #173

Description

@peter-fb

I want all calculations to use my local time. Is this a bug or am I doing something wrong:

peter@debian:~$ date -Iseconds
2026-01-07T11:17:48+01:00
peter@debian:~$ dateutils.dadd --from-zone=localtime --zone=localtime now 24h
2026-01-08T11:17:54
peter@debian:~$ dateutils.dadd --from-zone=localtime --zone=localtime now 1d
2026-01-08T10:18:00
peter@debian:~$ dateutils.dadd --version
dateadd 0.4.11

The results of now 24h and now 1d are off by an hour, which doesn't make any sense.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions