From 73d53bbe66b37a8b9a93411615d4aad70ee915a9 Mon Sep 17 00:00:00 2001 From: Jordan Partridge Date: Thu, 2 Jul 2026 21:42:24 -0700 Subject: [PATCH] fix: honor APP_TIMEZONE for date-sensitive operations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit config/app.php had no timezone key, so the framework always ran in UTC. Daily digests generated by an evening cron were dated tomorrow and the 24-hour recency window skewed by the UTC offset. Defaults to UTC when APP_TIMEZONE is unset — no behavior change for existing installs. --- config/app.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/config/app.php b/config/app.php index be035ed..d6286f6 100644 --- a/config/app.php +++ b/config/app.php @@ -15,6 +15,18 @@ 'name' => 'Know', + /* + |-------------------------------------------------------------------------- + | Application Timezone + |-------------------------------------------------------------------------- + | + | Date handling (daily digests, staleness cutoffs) should follow the + | operator's local day, not UTC. Defaults to UTC when unset. + | + */ + + 'timezone' => env('APP_TIMEZONE', 'UTC'), + /* |-------------------------------------------------------------------------- | Application Version