0

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?

Ryan
  • 5,883
  • 13
  • 56
  • 93

1 Answers1

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