Skip to content

fix(files_reminders): switch from DB-side NOW() to PHP-side generation#59358

Open
joshtrichards wants to merge 2 commits intomasterfrom
jtr/refactor-files-reminder-drop-db-side-now-use
Open

fix(files_reminders): switch from DB-side NOW() to PHP-side generation#59358
joshtrichards wants to merge 2 commits intomasterfrom
jtr/refactor-files-reminder-drop-db-side-now-use

Conversation

@joshtrichards
Copy link
Copy Markdown
Member

@joshtrichards joshtrichards commented Mar 31, 2026

Summary

DB-side NOW() is dependent on database server/session config. We want to know it's always UTC. We already generate timestamps PHP-side typically. This switches the now timestamp generate to be PHP-side for consistency, robustness in all environments, and also to make unit testing easier.

TODO

  • ...

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

Signed-off-by: Josh <josh.t.richards@gmail.com>
Copy link
Copy Markdown
Member

@CarlSchwan CarlSchwan left a comment

Choose a reason for hiding this comment

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

LGTM

@CarlSchwan CarlSchwan added this to the Nextcloud 34 milestone Apr 1, 2026
Signed-off-by: Josh <josh.t.richards@gmail.com>
@joshtrichards joshtrichards marked this pull request as ready for review April 2, 2026 12:56
@joshtrichards joshtrichards requested a review from a team as a code owner April 2, 2026 12:56
@joshtrichards joshtrichards requested review from Altahrim, ArtificialOwl, icewind1991 and salmart-dev and removed request for a team April 2, 2026 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: (Files) Setting a reminder for a file ignores the timezone

2 participants