mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3590] [Issue]: Blank TZ in .env.example forces Node to UTC/Etc/Unknown #1943
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#1943
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SpicyMarinara on GitHub (Jul 14, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3590
Originally assigned to: @SpicyMarinara on GitHub.
Summary
.env.exampleincludes an active blankTZ=assignment. When copied to.env, Node treats the blank timezone asEtc/Unknown/UTC, causing server-side scheduling and date logic to run on the wrong local day.Expected behavior
A blank or omitted timezone should allow Node to use the host timezone, or the template should not set
TZunless the user explicitly chooses an IANA timezone.Actual behavior
Copying
.env.examplewithTZ=causesprocess.env.TZto be blank. Node resolves the timezone asEtc/Unknownand uses UTC for localDateoperations, causing Noodle automatic refresh and other server-side schedules to run against the UTC day instead of the user's local day.Steps to reproduce
node -e 'console.log(Intl.DateTimeFormat().resolvedOptions().timeZone, new Date().toString())'withTZunset and observe the host timezone, e.g.America/New_York, GMT-0400.TZ=""and observeEtc/Unknown, GMT+0000..env.exampleto.envwithout changing the activeTZ=line.Etc/Unknownand distributes activity slots across the UTC day.Environment
Logs, screenshots, or video
Reported command evidence: with
TZunset, Node reportsAmerica/New_Yorkand GMT-0400; withTZ="", Node reportsEtc/Unknownand GMT+0000. Node.js v24.17.0, ICU 78.3. No screenshots or video provided.Additional context
Confirmed workaround: set an explicit IANA timezone such as
TZ=America/New_Yorkin.envand fully restart; Noodle then reportsAmerica/New_Yorkand schedules against the local day. Reported affected areas includenoodle-refresh-scheduler.service.ts, conversation presence/autonomous scheduling services using localgetDay()/getHours()/getMinutes(), server-triggered autonomous generation lackinguserTimeZone/promptTimeZone, awareness date windows, conversation memory context, scene summary date stamps, and tool/agent date macros. Proposed fixes: comment out the example timezone in.env.example, treat blank or whitespace-onlyTZas unset in runtime config, warn in the UI when timezone resolves toEtc/Unknown, and pass explicit user/chat timezone to server-side scheduling and macro contexts.Discord thread: [Config/Timezone] Blank TZ= forces Node to UTC/Etc/Unknown and affects scheduling
Discord thread link: https://discord.com/channels/1417099416812392641/1526408327939227838
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)
Discord thread transcript (4 messages)
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Jul 14, 2026):
Owned in draft PR #3591. I’m addressing the blank template/runtime value plus the explicit server scheduling and calendar-context paths described in this report.
@SpicyMarinara commented on GitHub (Jul 14, 2026):
Implemented in draft PR #3591. The fix removes the active blank
TZ=template value, normalizes legacy blank/whitespace runtime values to unset, warns in Noodle when timezone detection is unresolved, and persists the browser timezone per chat for autonomous schedules, temporal awareness, daily memories, and tool macros. Added DST-aware regression coverage;pnpm check, timezone/Noodle/prompt regressions, and the UI smoke suite all pass.