For example, certain time values might auto change when the system time zone changes. Will a timestamp without time zone value that's already stored in the database auto change for any reason at all?
Asked
Active
Viewed 119 times
0
Ryan
- 5,883
- 13
- 56
- 93
-
A database is used to store facts. Even if they are wrong. They wont change, though. – wildplasser Feb 07 '20 at 01:02
1 Answers
0
Neither timestamp (timestamp without time zone) nor timestamptz (timestamp with time zone) values will ever change by themselves. Only the display of timestamptz adapts to the current timezone setting.
Or you can display date and time for a given time zone with the AT TIME ZONE construct. And / or you can format it any way you like with various formatting functions.
The actual setting in your session is relevant for display, not the system time zone. Related:
Erwin Brandstetter
- 605,456
- 145
- 1,078
- 1,228