Skip to content

fix(frontend): show upload times in the viewer's local time (#119) - #126

Merged
amar-python merged 1 commit into
mainfrom
fix/119-local-times
Oct 27, 2026
Merged

amar-python merged 1 commit into
mainfrom
fix/119-local-times

Conversation

@amar-python

Copy link
Copy Markdown
Owner

Fixes #119.

What changes

  • Migrated files and Import history showed upload times in UTC without saying so. An upload at 19:33 AEDT on 27 Oct read as 2026-10-27 08:33.
  • Both now show the time in the viewer's own time zone, for example 27 Oct 2026, 19:33.
  • The exact UTC time stays in the tooltip, for example 2026-10-27 08:33:05 UTC, so audit reading is unchanged.
  • Two helpers in src/lib/utils.ts: formatLocalTime and formatUtc.
  • The format names the month, so it's read the same way in any locale (no 03/04 ambiguity). The time zone is the browser's, so each client sees its own local time.

Checks

  • vitest: 136 passed (131 on main plus 5 new). The new tests cover:
  • Mutation check: forcing UTC inside formatLocalTime makes 3 of the 5 tests fail.
  • tsc exit 0, eslint clean on changed files, production build OK. No Python changed.

Done when

This PR is merged with CI green, and a screenshot of Migrated files showing local times is attached to #119.


Generated by Claude Code

Migrated files and Import history showed UTC without saying so, so an
upload at 19:33 AEDT read as 08:33. Both now show "27 Oct 2026, 19:33"
in the browser's zone, with the exact UTC time in the tooltip.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019YPoXzBSj89ZHgw7nfTmbB
@amar-python
amar-python merged commit 14f07e4 into main Oct 27, 2026
3 checks passed
@amar-python
amar-python deleted the fix/119-local-times branch October 27, 2026 10:36
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.

Migrated files shows upload times in UTC without saying so

2 participants