Skip to content

Default string representation is not iso anymore #822

@ndeslandesupgrade

Description

@ndeslandesupgrade
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions