Skip to content

App token list shows an expiry date one day after the picked date #4183

Closed

Description

@AlexAndBear

Initial Checklist

  • I understand this is a bug report and questions should be posted in the Community Discussions
  • I searched issues and couldn’t find anything (or linked relevant results below)

Bug Description

A new app token expires just after midnight of the day after the picked date. AppTokenModal.vue sends the expiry as a fractional duration up to 23:59:59.999 of the picked day, and the server adds it to its own, slightly later time.

Reproduction Steps

  1. Open Preferences > App tokens and click New
  2. Enter a note, pick Dec 11 and confirm
  3. Close the dialog and look at "Expires at"

Expected Outcome

The token expires on Dec 11.

Actual Outcome

The success dialog says Dec 11, 11:59 PM, but the list says Dec 12, 12:00 AM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions