Fix UTC/local time issues with access tokens

What does this MR do and why?

The frontend parses all the dates according to UTC timezone and present the date-picker and expiration accordingly.

date = new Date('2025-10-17T09:04:51Z')
// Fri Oct 17 2025 11:04:51 GMT+0200 (Central European Summer Time) The datetime is adjusted to the local timezone

a.setUTCHours(0,0,0,0)
// Fri Oct 17 2025 02:00:00 GMT+0200 (Central European Summer Time) This is a representation of the 00:00:00 UTC time in the local timezone

All dates in the UI represents UTC datetime.

References

Closes #415649 (closed)

Screenshots or screen recordings

i

How to set up and validate locally

  1. Test in https://gdk.test:3443/groups/flightjs/-/settings/access_tokens
  2. Test in https://gdk.test:3443/-/user_settings/personal_access_tokens
  3. Change date/time. On a Mac: System Settings > Date & Time > Set time zone automatically using your current location (disable) > Closest city (set according to the timezone you want to test).

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Eduardo Sanz García

Merge request reports

Loading