on 2012 Feb 24 7:24 AM
We host database for some online applications and some of our new customers are located in another timezone.
Since we have all database running in just one box, is that possible to configure timezone in database/db server, this way sa will not use OS timezone.
Request clarification before answering.
What version are you using?
AFAIK, v12 has introduced the new data type TIMESTAMP WITH TIME ZONE and the new special value CURRENT UTC TIMESTAMP exactly for such use cases.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Now I'm somewhat puzzled what exactly has been improved with v12:
Does v8+ (and the "time_zone_adjustment" option) allow a client to adjust the display of UTC time values to the local timezone (i.e. it allows to correct between displayed and stored times? (But one should still store UTC times in case different time zones do matter, e.g. with the help of DEFAULT/CURRENT UTC TIMESTAMP.)
Whereas the v12 TIMESTAMP WITH TIME ZONE type allows the storage of times with local time zone information, so clients do not need to adjust the display, and the time can still be stored in a standardized way?
Before version 12, one always needed to know what timezone was used for values in timestamp columns. All that DEFAULT/CURRENT UTC TIMESTAMP provided were ways to get UTC timestamps instead of the timestamps in the local server OS timezone provided by DEFAULT/CURRENT TIMESTAMP.
| User | Count |
|---|---|
| 15 | |
| 9 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.