We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am on the latest Pendulum version.
I have searched the issues of this repo and believe that this is not a duplicate.
Windows 11 - 23H2
3.0.0
Hello, when trying to parse the following date / weeknumber: "2024W401" I noticed updating from 2.1.2 to 3.0.0 my code started to fail.
Pendulum 2.1.2 pendulum.parse("2024W401", tz="CET") DateTime(2024, 9, 30, 0, 0, 0, tzinfo=Timezone('CET'))
Pendulum 3.0.0 pendulum.parse("2024W401", tz="CET") pendulum.parsing.exceptions.ParserError: Unable to parse string [2024W401]
The following "strings" works ok: pendulum.parse("2024W400", tz="CET") DateTime(2024, 9, 29, 0, 0, 0, tzinfo=Timezone('CET')) pendulum.parse("2024W402", tz="CET") DateTime(2024, 10, 1, 0, 0, 0, tzinfo=Timezone('CET'))
The text was updated successfully, but these errors were encountered:
Bug seems to be introduced in 3.0.0b1, 3.0.0a1 works fine
print(pendulum.parse('2024W40', tz='Europe/Amsterdam').format('DD-MM-YYYY HH:mm:ss'))
Gives: 30-09-2024 00:00:00
Edit: add code and result example
Sorry, something went wrong.
No branches or pull requests
I am on the latest Pendulum version.
I have searched the issues of this repo and believe that this is not a duplicate.
Windows 11 - 23H2
3.0.0
Hello,
when trying to parse the following date / weeknumber: "2024W401" I noticed updating from 2.1.2 to 3.0.0 my code started to fail.
Pendulum 2.1.2
pendulum.parse("2024W401", tz="CET")
DateTime(2024, 9, 30, 0, 0, 0, tzinfo=Timezone('CET'))
Pendulum 3.0.0
pendulum.parse("2024W401", tz="CET")
pendulum.parsing.exceptions.ParserError: Unable to parse string [2024W401]
The following "strings" works ok:
pendulum.parse("2024W400", tz="CET")
DateTime(2024, 9, 29, 0, 0, 0, tzinfo=Timezone('CET'))
pendulum.parse("2024W402", tz="CET")
DateTime(2024, 10, 1, 0, 0, 0, tzinfo=Timezone('CET'))
The text was updated successfully, but these errors were encountered: