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

Tweak some of the new pendulum behavior #3907

Merged
merged 1 commit into from Dec 27, 2023
Merged

Conversation

gazpachoking
Copy link
Member

Some of the changes to add timezone aware datetimes weren't fully backwards compatible as intended with 3.11.0. This hopefully fixes those issues and reverts a dubious decision:

  • Dates are no longer cast to datetimes when added as entry fields. Instead, for convenience, the user is allowed to compare a date to a datetime, and at that point the date will be considered to be a datetime at midnight.
  • Anidb reverted to set plain dates, rather than datetimes in tokyo time.
  • now and utcnow template variables are now the special datetimes that allow comparison with naive datetimes and dates.

…ry fields

[change] Allow comparing 'date's to 'datetime's in templates rather than failing. The date will be considered to be at midnight in the same timezone as the datetime.
[fix] These changes fix some templates/if statements that weren't backwards compatible as intended in 3.11.0
@gazpachoking gazpachoking merged commit fcec754 into develop Dec 27, 2023
8 checks passed
@gazpachoking gazpachoking deleted the pendulum_tweak branch December 27, 2023 03:48
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

Successfully merging this pull request may close these issues.

None yet

1 participant