✅ How to save to database with ISO format?
Hello, I'd like to save datetime with timezone to database. I use NodaTime for this. Let's look into my code:
BaseEntity:
GetTimeZone
extension to automatically get time zone:
It works good. I see almost correctly filled date and time zone in database when user creates entity.
CreatedAt
should be in ISO
format but it looks not like ISO
format in database4 Replies
what database? unless you're storing it as text, the display format isn't the same as the storage format
postgres
so that's just how your database editor displays it, it isn't actually stored that way
postgres datetimes are just a unix timestamp iirc
ah I see ddl ur right