Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Comments

Fix documentation example of fluent helpers#920

Open
oliverw1 wants to merge 1 commit intopython-pendulum:master from
oliverw1:docs/fix-fluent-helpers-example
Open

Fix documentation example of fluent helpers #920
oliverw1 wants to merge 1 commit intopython-pendulum:master from
oliverw1:docs/fix-fluent-helpers-example

Conversation

@oliverw1
Copy link

@oliverw1 oliverw1 commented Oct 1, 2025

The REPL output now matches the instructions.

Extra info has been added to aid with the explanation as well for those who are not aware of DST, particularly the exact change happening that day.

The REPL output now matches the instructions. Extra info has been added
to aid with the explanation as well for those who are not aware of DST.
Copy link

codspeed-hq bot commented Oct 1, 2025
edited
Loading

CodSpeed Performance Report

Merging #920 will not alter performance

Comparing oliverw1:docs/fix-fluent-helpers-example (0e32103) with master (3382956)

Summary

✅ 1 untouched

Copy link
Member

ashb commented Oct 22, 2025

Re-triggering CI.

@ashb ashb closed this Oct 22, 2025
@ashb ashb reopened this Oct 22, 2025
>>> dt = dt.in_tz('Europe/Paris')
>>> dt = dt0.in_tz('Europe/Paris')
>>> print(dt)
'2013年03月31日T04:30:00+02:00'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something weird is going on here. How is this possible that dt0.set(tz=...) produces different result than dt0.in_tz(...) for the same timezone?

Copy link
Contributor

@gazpachoking gazpachoking Jan 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in_tz converts the time to the new timezone. set normally doesn't convert the time, just sets the timezone, but presumably when the time is invalid in the new time zone it has to change it to a valid one.

oliverw1 reacted with thumbs up emoji
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@Secrus Secrus Secrus left review comments

@ashb ashb ashb approved these changes

+1 more reviewer

@gazpachoking gazpachoking gazpachoking left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /