Skip to content

Task 013: Remove vendored Day.js timezone plugin - #11

Merged
Igloczek merged 3 commits into
masterfrom
task/013-remove-vendored-dayjs-timezone
Jun 30, 2026
Merged

Igloczek merged 3 commits into
masterfrom
task/013-remove-vendored-dayjs-timezone

Conversation

@Igloczek

@Igloczek Igloczek commented Jun 30, 2026 •

Copy link
Copy Markdown
Collaborator

Implements tasks/013-remove-vendored-dayjs-timezone.md from the ponytail audit backlog.

Goal

Replace the forked timezone plugin with the npm dayjs/plugin/timezone if behavior is equivalent.

Scope

  • Remove src/modules/dayjs/plugin/timezone/ and src/modules/dayjs/constant.ts.
  • Wire dayjs/plugin/timezone and dayjs/plugin/utc from the dayjs package in src/main.ts and backend dayjs entry.
  • Verify timezone formatting in maintenance windows and datetime mixin still correct (especially the issue #2318 edge case).

Acceptance criteria

  • src/modules/dayjs/ directory deleted or empty of vendored plugin code.
  • No imports from @/modules/dayjs/plugin/timezone.
  • Datetime display in UI matches pre-change behavior for at least: UTC, Europe/Warsaw, America/New_York.
  • bun run lint passes.
  • bun run build:frontend succeeds.
  • bun run test-e2e passes (or manual QA on maintenance + status page timestamps).

Depends on

Nothing.

Verification

bun run lint
bun run build:frontend
bun run test-e2e
rg "modules/dayjs" src

Audit reference

Finding #13 — vendored Day.js timezone plugin.

@Igloczek

Copy link
Copy Markdown
Collaborator Author

/ponytail-review

Switched to npm dayjs/plugin/timezone; deleted vendored copy. Import-only change.

Lean already. Ship.

7 files changed, 3 insertions(+), 276 deletions(-)

@Igloczek
Igloczek force-pushed the task/013-remove-vendored-dayjs-timezone branch from 775fd73 to 94d37da Compare June 30, 2026 12:03
Igloczek added 3 commits June 30, 2026 14:13
Replace the forked timezone plugin with dayjs/plugin/timezone from the
dayjs package. Delete src/modules/dayjs/ and duplicate server type defs.

Verified timezone formatting for UTC, Europe/Warsaw, and America/New_York
matches expected behavior; uptime-calculator timezone tests pass.
@Igloczek
Igloczek force-pushed the task/013-remove-vendored-dayjs-timezone branch from 94d37da to 895b11c Compare June 30, 2026 12:14
@Igloczek
Igloczek merged commit 0c9ef5a into master Jun 30, 2026
@Igloczek
Igloczek deleted the task/013-remove-vendored-dayjs-timezone branch June 30, 2026 12:58
Igloczek added a commit that referenced this pull request Aug 8, 2026
…imezone

Task 013: Remove vendored Day.js timezone plugin
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.

1 participant