pendulum icon indicating copy to clipboard operation
pendulum copied to clipboard

Default string representation is not iso anymore

Open ndeslandesupgrade opened this issue 9 months ago • 1 comments

  • [x] I am on the latest Pendulum version.
  • [x] 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 avatar May 08 '24 16:05 ndeslandesupgrade