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

Incorrect parsing of "Xth weekday of Month Year" #7

Open
pmolodo opened this issue Nov 16, 2016 · 0 comments
Open

Incorrect parsing of "Xth weekday of Month Year" #7

pmolodo opened this issue Nov 16, 2016 · 0 comments

Comments

@pmolodo
Copy link

pmolodo commented Nov 16, 2016

if i do:

timelib.strtodatetime("+0:00 first thu of November 2012")

...I get:

datetime.datetime(2012, 11, 8, 0, 0)

...which is clearly wrong, as the "first" weekday of any month must fall in the 1-7 range.

(Php itself correctly gives 2012-11-1 for this).

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