-
-
Notifications
You must be signed in to change notification settings - Fork 369
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
Default datetime string format changed in 3.0 release #800
Comments
This changed to be consistent with the stdlib: >>> import pendulum
>>> import datetime
>>> print(datetime.datetime.now(tz=datetime.timezone.utc))
2024-05-08 16:37:28.783379+00:00
>>> print(pendulum.now(tz=datetime.timezone.utc))
2024-05-08 16:37:31.622175+00:00 IMO it's a good, if breaking, change. It was also called out in the changelog but it should've probably had bold letters and indicated it's a breaking change. |
@edgarrmondragon all docs are still mentioning that default str representation is iso :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue
The pendulum docs say "The default string representation is the same as the one returned by the isoformat() method."
This was true in Pendulum 2, but is no longer true in Pendulum 3. This could be a breaking change for users that are casting pendulum datetimes to strings.
In Pendulum 2:
In Pendulum 3:
The text was updated successfully, but these errors were encountered: