Closed angelru closed 3 years ago
I am saving a date, in the database I see the time well, but when I receive the object, the time always arrives 2 hours less, why?
the date and time is saved as UTC+2 in firebase with DateTime.Now
DateTime.Now
This library converts a time received from database to UTC time. If you want to get the local time, you should use ToLocalTime() method of DateTime class.
ToLocalTime()
DateTime
@f-miyu thanks
I am saving a date, in the database I see the time well, but when I receive the object, the time always arrives 2 hours less, why?
the date and time is saved as UTC+2 in firebase with
DateTime.Now