[GH-ISSUE #945] [Issue]: Conversation prompt timestamps use UTC instead of local timezone #461

Closed
opened 2026-10-20 17:29:06 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @cha1latte on GitHub (May 17, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/945

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Conversation Mode prompt timestamps appear to use UTC/server time instead of the user's local timezone, causing characters to reason about the wrong current time when timestamping is enabled.

Expected behavior

When a user sends a Conversation Mode message, any prompt-injected message timestamps or current-time context should align with the user's local/system timezone, or with an explicit configured timezone.

For example, a user in JST sending a message at 03:45 should have characters reason from approximately 03:45 JST, not 18:45 UTC.

Actual behavior

A Discord reporter in JST says that when they send a conversation message at about 03:45 AM, the character says or behaves as if it is 06:45 PM. That offset matches UTC conversion (03:45 JST = 18:45 UTC on the previous day), so the model appears to be reading UTC-formatted prompt timestamps rather than local time.

Another user later checked v1.5.9 and v1.6.0 and said the issue still occurs there, while it was not occurring for them in v1.5.8.

Steps to reproduce

  1. Install/run Marinara Engine via the .exe installer.
  2. Use a system/user timezone such as JST.
  3. Enable the timestamp function / message timestamping behavior.
  4. Open a Conversation Mode chat.
  5. Send a message at a local time that clearly differs from UTC, such as 03:45 JST.
  6. Observe whether the character reasons about the current time as local time or as the UTC-equivalent time, such as 18:45.

Marinara Engine version

Reported as still occurring in v1.5.9 and v1.6.0. Another user said it was not occurring in v1.5.8.

Install type

Installer

OS + version

Not specified. Reporter was using the .exe installer, likely Windows.

Browser or app shell

Installer app shell

Screenshots or video

Not a visual/UI issue.

Logs

Not provided.

Additional context

Source: Discord support thread from May 10-11, 2026.

Original example:

03:45 AM JST -> character says/acts like it is 06:45 PM

That is consistent with UTC prompt-time injection:

03:45 JST = 18:45 UTC

Related but not exact duplicates:

  • #444 fixed stale Conversation Mode schedule/status display on chat open via #531.
  • #788 fixed schedule misalignment after creating a one-on-one chat via #804.
  • #742 mentions that the original Discord thread also discussed UTC timestamps, but that issue was intentionally scoped to character-level default schedules rather than timestamp timezone behavior.

Current code appears to format Conversation Mode prompt timestamps on the server with Date#getHours() / Date#getMinutes(), so this may depend on the server/process timezone rather than the client/user timezone. Docker/VPS installs have a documented TZ workaround, but the installer/app-shell report suggests local desktop users can still end up with UTC-like prompt timestamps.

Temporary workaround from Discord: turn off timestamps, or explicitly state the local time/timezone in Author's Note or prompt context.

Template check

  • I provided the required summary, behavior, reproduction, and environment details.
  • If this is a visual/UI bug, blank screen, layout issue, mobile/responsive issue, incorrect image or sprite, broken animation, or unexpected error state, I attached screenshots or video.
Originally created by @cha1latte on GitHub (May 17, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/945 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Conversation Mode prompt timestamps appear to use UTC/server time instead of the user's local timezone, causing characters to reason about the wrong current time when timestamping is enabled. ## Expected behavior When a user sends a Conversation Mode message, any prompt-injected message timestamps or current-time context should align with the user's local/system timezone, or with an explicit configured timezone. For example, a user in JST sending a message at `03:45` should have characters reason from approximately `03:45 JST`, not `18:45 UTC`. ## Actual behavior A Discord reporter in JST says that when they send a conversation message at about `03:45 AM`, the character says or behaves as if it is `06:45 PM`. That offset matches UTC conversion (`03:45 JST` = `18:45 UTC` on the previous day), so the model appears to be reading UTC-formatted prompt timestamps rather than local time. Another user later checked v1.5.9 and v1.6.0 and said the issue still occurs there, while it was not occurring for them in v1.5.8. ## Steps to reproduce 1. Install/run Marinara Engine via the `.exe` installer. 2. Use a system/user timezone such as JST. 3. Enable the timestamp function / message timestamping behavior. 4. Open a Conversation Mode chat. 5. Send a message at a local time that clearly differs from UTC, such as `03:45 JST`. 6. Observe whether the character reasons about the current time as local time or as the UTC-equivalent time, such as `18:45`. ## Marinara Engine version Reported as still occurring in v1.5.9 and v1.6.0. Another user said it was not occurring in v1.5.8. ## Install type Installer ## OS + version Not specified. Reporter was using the `.exe` installer, likely Windows. ## Browser or app shell Installer app shell ## Screenshots or video Not a visual/UI issue. ## Logs Not provided. ## Additional context Source: Discord support thread from May 10-11, 2026. Original example: ```text 03:45 AM JST -> character says/acts like it is 06:45 PM ``` That is consistent with UTC prompt-time injection: ```text 03:45 JST = 18:45 UTC ``` Related but not exact duplicates: - #444 fixed stale Conversation Mode schedule/status display on chat open via #531. - #788 fixed schedule misalignment after creating a one-on-one chat via #804. - #742 mentions that the original Discord thread also discussed UTC timestamps, but that issue was intentionally scoped to character-level default schedules rather than timestamp timezone behavior. Current code appears to format Conversation Mode prompt timestamps on the server with `Date#getHours()` / `Date#getMinutes()`, so this may depend on the server/process timezone rather than the client/user timezone. Docker/VPS installs have a documented `TZ` workaround, but the installer/app-shell report suggests local desktop users can still end up with UTC-like prompt timestamps. Temporary workaround from Discord: turn off timestamps, or explicitly state the local time/timezone in Author's Note or prompt context. ## Template check - [ ] I provided the required summary, behavior, reproduction, and environment details. - [ ] If this is a visual/UI bug, blank screen, layout issue, mobile/responsive issue, incorrect image or sprite, broken animation, or unexpected error state, I attached screenshots or video.
bsakaguchi 2026-10-20 17:29:06 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (May 23, 2026):

Implemented in the local fix pass.

What changed:

  • Generation requests now include the browser IANA timezone.
  • Conversation prompt timestamps, date buckets, current-time context, schedule-derived status, and cross-chat awareness formatting now use that timezone when available.
  • Server falls back to its local timezone if the client does not provide a valid timezone.
  • CHANGELOG.md was updated.

Validation run:

  • pnpm --filter @marinara-engine/shared lint
  • pnpm --filter @marinara-engine/server lint
<!-- gh-comment-id:4524860956 --> @SpicyMarinara commented on GitHub (May 23, 2026): Implemented in the local fix pass. What changed: - Generation requests now include the browser IANA timezone. - Conversation prompt timestamps, date buckets, current-time context, schedule-derived status, and cross-chat awareness formatting now use that timezone when available. - Server falls back to its local timezone if the client does not provide a valid timezone. - CHANGELOG.md was updated. Validation run: - `pnpm --filter @marinara-engine/shared lint` - `pnpm --filter @marinara-engine/server lint`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#461
No description provided.