I have UTC
time zone set in my PostgreSQL and SELECT NOW()
shows me the right date in psql
console.
I use PHPStorm for development and its database console for accessing my database, but it uses different time zone (Europe/Moscow, which is the time zone of my Mac), and SELECT NOW()
shows me the time in this time zone (and by the way, the date is wrong, because the Europe/Moscow time zone recently changed its offset to +3
from +4
).
I have not found any information on how to tell PHPStorm to use the time zone configured in postgresql.conf
instead of system's time zone. Is it possible?