I am confused about using datetimes in databases and applications for international users. My application is developed asp.net web api and c# programming language.
I am using a column in database (postgresql) named created_at
that type is without timezone.
When New York Time 2020-11-02 23:50:00
, London Time is 2020-11-03 04:50:00
. So day and hour is different.
And I want to show dates in relative time like Now, 1 Hours ago, 10 minutes ago...
If Someone adds a record in database at 2020-11-03 04:50:00
in London, someone shows the record as relative time 5 hours after
. This looks a little strange.
Is this a true logic? How does it workin real applications?