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

Default string representation is not iso anymore #822

Open
2 tasks done
ndeslandesupgrade opened this issue May 8, 2024 · 1 comment
Open
2 tasks done

Default string representation is not iso anymore #822

ndeslandesupgrade opened this issue May 8, 2024 · 1 comment

Comments

@ndeslandesupgrade
Copy link

ndeslandesupgrade commented May 8, 2024

  • I am on the latest Pendulum version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • OS version and name: python 3.11.6, issue happening on OSX and docker AmazonLinux2023 image
  • Pendulum version: pendulum==3.0.0

Issue

on pendulum 2.1.2

>>> print(pendulum.now())
2024-05-08T12:19:32.071277-04:00

using pendulum 3.0.0

>>> print(pendulum.now())
2024-05-08 12:19:59.697597-04:00

I dont see any infos in docs that this change was on purpose, in fact i still see mention that

The default string representation is the same as the one returned by the isoformat() method.

this is still working fine as a workaround

>>> print(pendulum.now().to_iso8601_string())
2024-05-08T12:25:34.319206-04:00
@ndeslandesupgrade
Copy link
Author

duplicate with issue 800

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