Skip to content

Conversation

@Koc
Copy link
Contributor

@Koc Koc commented Dec 7, 2025

Right now createdAt/lastEditAt displays UTC timezone. Let's apply user's timezone here.

@Koc Koc requested review from blizzz and enjeck as code owners December 7, 2025 23:15
@Koc Koc force-pushed the feature/apply-users-timezone branch 2 times, most recently from e9c231b to fd99a82 Compare December 7, 2025 23:24
@blizzz
Copy link
Member

blizzz commented Dec 8, 2025

I am not sure whether we should do this on the backend, or let the client decide what/how the date and time is being presented. Giving UTC leaves most flexibility to the web interface or any other client. No?

@blizzz blizzz added enhancement New feature or request 3. to review Waiting for reviews labels Dec 8, 2025
@Koc Koc force-pushed the feature/apply-users-timezone branch from fd99a82 to 3b9b19e Compare December 18, 2025 15:40
@Koc
Copy link
Contributor Author

Koc commented Dec 18, 2025

indeed, I've changed approach. Now BE stores dates in UTC format without any transformations. At the same time FE handles:

  • formatting from UTC to local browser's timezone during output
  • formatting back from local browser's timezone to UTC before storing data

Work still in progress, I'm testing various scenarios

@Koc Koc force-pushed the feature/apply-users-timezone branch from 11457bd to 098edb3 Compare December 18, 2025 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants