select current_time at time zone 'GMT-2'
returns
"11:54:40.22045+02"
but correct local time in Windows is one hour different:
12:54
How to get correct local time ?
Using
"PostgreSQL 9.6.0, compiled by Visual C++ build 1800, 32-bit"
with standard postgresql.conf file in Windows 10 Same issue occurs also in ealier Postgres and in earlier windows.
Server time in Windows is correct.
Daylight saving time was changed by one hour a week ago. Maybe postgres didnt recognized it.
at time zone?'GMT-2'anymore, Dorothy. (Sorry for the pun. Have you tried to use your named time-zone instead?)select current_timereturns"10:46:53.975868+00"which is 3 hours different from windows timeselect current_time at time zone 'Europe/Tallinn'returns correct time. Is it OK to use this in all postgres version starting from 8.1 ?