Skip to content

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

Open
@podopie

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)

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