Date in record is not the same on screen

Date in record is not the same on screen

  

Hello,


I have this record on database https://www.screencast.com/t/oqoONGyEO

And on the screen appear like that https://www.screencast.com/t/lY3uFEKVcDG


Someone knows what is making that?


Thank you

Hi Tiago,

Dates in the database are always stored in the timezone of the database server. Given the 1h discrepancy, it looks like daylight savings might be in use on your device?

Hi,


I have a data saved on the database, 2017-07-17 15:00 but when i display on my mobile app it displays as 2017-07-17 16:00.


Why is that? How can i make it display the correct date?


Thanks

Hi Tiago,

On mobile local storage, the time is always in UTC. It is converted to and from local time when you read from/write to the database. So it actually does display the correct time.

Hello,


I'm using the record directly from the server not from local storage.

I do not want to convert anything, I just want to show what I have stored in the database


Thanks

Hi Tiago,

Some more questions:

  1. What is the timezone on your server? And what is the timezone on your device?
  2. What application is writing the dates in the database? Software developed in OutSystems?
  3. How do you retrieve the data from the server? Do you use a Server Action or a REST call?