Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pyphoon on windows cannot parse dates #44

Open
kungfubeaner opened this issue Jan 27, 2024 · 1 comment
Open

Pyphoon on windows cannot parse dates #44

kungfubeaner opened this issue Jan 27, 2024 · 1 comment

Comments

@kungfubeaner
Copy link

I installed pyphoon on Arch Linux and on windows. On it works properly but on windows:

pyphoon 1960-04-02

says cannot parse date, but strangely later dates like 1980-10-31 or 1993-10-31 work fine.
I'm guessing its an issue with python-dateutils on windows.

@kungfubeaner
Copy link
Author

kungfubeaner commented Jan 29, 2024

Tried to do some debugging on my own and this is where the issue happens:

Line 267 in init.py:

dateobj = time.mktime(dateutil.parser.parse("04/02/1960").timetuple())

Traceback (most recent call last):
File "", line 1, in
OverflowError: mktime argument out of range

It seems any date before the epoch is invalid. "01/01/1970"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant