The question is short: if I already have data in a column type timestamp without time zone, if I set the type to timestamp with time zone, what does postgresql do with this data?
PostgreSQL alter type timestamp without time zone -> with time zone
postgresqltimezone
Related Topic
- C# – DateTime vs DateTimeOffset
- Postgresql – Difference between text and varchar (character varying)
- Postgresql – Difference between timestamps with/without time zone in PostgreSQL
- Sql – Extract date (yyyy/mm/dd) from a timestamp in PostgreSQL
- Python – How to make a timezone aware datetime object in Python
- How to get a time zone from a location using latitude and longitude coordinates
- Postgresql – psql: FATAL: database “
” does not exist
Best Answer
It keeps the current value in localtime and sets the timezone to your localtime's offset:
According to the manual for Alter Table:
According to the manual for Date/Time types