wp1 icon indicating copy to clipboard operation
wp1 copied to clipboard

Selection "Local time" is not correct

Open kelson42 opened this issue 4 months ago • 2 comments

I have a selection called "My Book test collection" that I just updated and it displays "8/24/25, 12:33 PM" but actually it is "14:33".

The local time seems to be the system time.

It seems to be neither:

  • retrieved from my browser
  • nor from the identity provider (which has also my local time configured)

kelson42 avatar Aug 24 '25 12:08 kelson42

We use the following function to format a UNIX timestamp seconds value into a "local" time: https://github.com/openzim/wp1/blob/main/wp1-frontend/src/lib/util.js

If the time value is not what you expect, it could be an issue with your browser? It's working on my machine.

audiodude avatar Aug 24 '25 17:08 audiodude

I will check.

kelson42 avatar Aug 24 '25 17:08 kelson42