Skip to content

"x days from now" relative no longer functions as of 0.7Β #502

Closed

Description

@podopie

This is not resolved in 0.7.1 either.

0.6.0 shows expected behaviour

Python 3.6.5 (default, Jun 17 2018, 12:26:58)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import dateparser
>>> dateparser.__version__
'0.6.0'
>>> dateparser.parse('7 days from now')
datetime.datetime(2019, 2, 19, 17, 6, 11, 572247)
>>> dateparser.parse('in 7 days')
datetime.datetime(2019, 2, 19, 17, 6, 14, 819151)

0.7 shows failed behaviour

Python 3.6.5 (default, Jun 17 2018, 12:26:58)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import dateparser
>>> dateparser.__version__
'0.7.1'
>>> dateparser.parse('7 days from now')
>>> dateparser.parse('in 7 days')
datetime.datetime(2019, 2, 19, 17, 8, 39, 230225)

Activity

  1. sparkingdark commented on Mar 16, 2020

    @sparkingdark

    I want to work on it , please assign it to me.

  2. Gallaecio commented on Mar 16, 2020

    @Gallaecio
    Contributor

    @darkdebo Feel free to open a pull request for it.

  3. sparkingdark commented on Mar 17, 2020

    @sparkingdark

    Thank you I will do it

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions