Skip to content

Public links: saving the Edit dialog shifts the expiry by the browser's UTC offset, and an expiry can't be removed #3584

Closed

Description

@AndriiPasternak31

Build: v1.0.0-rc2 (96f88f9). Found during release-test row B16 (abilityai/trinity-enterprise#847), light, 1440, browser at UTC+1. Present at v0.9.5 too.

Steps

  1. Create a public link with an expiry two days ahead.
  2. Edit link → Save Changes without touching anything. Repeat.
  3. Edit link → clear Expiration → Save Changes.

Expected

The expiry is unchanged after each Save; clearing the field removes the expiry.

Actual

  • Each untouched Save moved the expiry one hour earlier (11:00Z → 10:00Z → 09:00Z), i.e. by the browser's UTC offset. East of UTC a link expires early; west of UTC, late.
  • After clearing the field, the expiry was still 09:00Z. An expiry can't be removed from the UI.

Where

src/frontend/src/components/PublicLinksPanel.vue: editLink loads the stored UTC string into the datetime-local input with slice(0, 16) (:475), and saveLink parses it back as local time (:424). An empty field sends no expires_at, and the update skips a missing value (:423-425).

Acceptance criteria

  • Save with no change leaves expires_at identical, in any time zone.
  • Clearing the field removes the expiry.

Activity

  1. added
    priority-p3
    type-bug
    theme-reliability
    complexity-low
    priority-p2
    and removed
    priority-p3
    on Oct 11, 2026
  2. AndriiPasternak31 commented on Oct 12, 2026

    @AndriiPasternak31
    ContributorAuthor

    Re-triaged for 1.0 (#847, row B16): P3 → P2. Saving the Edit dialog silently moves the expiry by the browser's UTC offset (west of UTC, every untouched Save adds hours). Same at v0.9.5: release-note, or fix if cheap (frontend only).

  3. added
    status-ready
    on Oct 12, 2026
  4. removed
    status-ready
    on Oct 20, 2026
  5. dolho commented on Oct 20, 2026

    @dolho
    Contributor

    /claim

  6. added
    status-in-progress
    on Oct 20, 2026
  7. github-actions commented on Oct 20, 2026

    @github-actions

    Claimed by @dolho. Label status-in-progress added.

    Next steps:

    1. Create branch: feature/3584-<short-slug>
    2. Implement the feature
    3. Open a PR with Fixes #3584
  8. added a commit that references this issue on Oct 22, 2026
  9. added
    status-in-dev
    and removed
    status-in-progress
    on Oct 22, 2026
  10. removed
    status-in-dev
    on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

complexity-lowpriority-p2theme-reliabilitytype-bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions