sdispater / pendulum

Python datetimes made easy
https://pendulum.eustace.io
MIT License
6.12k stars 372 forks source link

Default string representation is not iso anymore #822

Open ndeslandesupgrade opened 1 month ago

ndeslandesupgrade commented 1 month ago

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 commented 1 month ago

duplicate with issue 800