nostr_console icon indicating copy to clipboard operation
nostr_console copied to clipboard

[BUG?] Post/reply timestamp displayed is in GMT in comparison to user timezone/system time

Open Sakhalinfox opened this issue 2 years ago • 1 comments

Issue Description

Creating any post/replies on Nostr_Console displays the time in GMT on console. It can be a bit confusing for the end user viewing the timestamps comparing it to their system time (in my case [GMT-05:00] / EST) and knowing when they actually made the post.

Steps to Reproduce

  1. Create a new post/reply on Nostr_Console.
  2. Review the post time and date in comparison to system time or created_at time in the metadata. There's a different of +5 hours (for me).

Screenshots from Nostr_Console: image

Metadata created_at date/time: image 1672697081 Epoch unix time = GMT: Monday, January 2, 2023 10:04:41 PM

Expected output:

Monday, January 2, 2023 5:04:41 PM (GMT-05:00). Need to perform conversion of the GMT time to user's timezone and display in the post timestamp.

Example reproduction details Event ID: 02c17553731d7746800881043f1854b95d5cbdea4028d0b2020a16cb5da32f1e Note ID: note1qtqh25mnr4m5dqqgsyzr7xz5h9w4e002gq5dpvszpgtvkhdr9u0qk5z5gy

Test Environment Details

  • OS: Arch Linux
  • Nostr_Console version: Main Branch latest Git commit (v0.3.4-beta)
  • Execution Method: Docker

Sakhalinfox avatar Jan 02 '23 22:01 Sakhalinfox

This has likely something to do with the docker not getting the local time zone, and/or not supplying it to the dart program running.

vishalxl avatar Jan 03 '23 08:01 vishalxl