Skip to content

Timex.shift yields incorrect results for leap year after update #709

Open

Description

@rizasal

Steps to reproduce

  • API function called - Timex.shift
  • Arguments provided - Timex.shift(~D[2020-02-29], years: 1)

Description of issue

  • The same arguments on version 3.6.1 yields the correct result of ~D[2021-02-28] whereas the latest version 3.7.6 yields ~D[2021-03-01]

image

Activity

  1. elielhaouzi commented on Apr 21, 2022

    @elielhaouzi

    As I see in the test the changes seem to be wanted. The question is why the previous behavior has been changed ? Thanks

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions