Postgres timezone error

A special forum dedicated to our PT4 for Mac OS X users

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

Postgres timezone error

Postby TennisDKT » Sat Oct 03, 2015 6:55 am

Hey,

I travel a lot, so what do I set timezone in this file /Library/PostgreSQL/9.3/data/postgresql.conf to so that it uses the same timezone as my computer?

Thanks
TennisDKT
 
Posts: 38
Joined: Thu Jun 21, 2012 8:06 pm

Re: Postgres timezone error

Postby Flag_Hippo » Sat Oct 03, 2015 7:34 am

Flag_Hippo
Moderator
 
Posts: 15215
Joined: Tue Jan 31, 2012 7:50 am

Re: Postgres timezone error

Postby TennisDKT » Sat Oct 03, 2015 9:49 am

Yes I know how to add the specific time zone I am in, but do I have to do this every time I travel to a new country? Is there no way for it to be set to follow my time clock on my mac?

Thanks
TennisDKT
 
Posts: 38
Joined: Thu Jun 21, 2012 8:06 pm

Re: Postgres timezone error

Postby Flag_Hippo » Sat Oct 03, 2015 11:48 am

As detailed in that guide this is how PostgreSQL works in versions 9.2 onwards where the time zone is established when PostgreSQL is installed. Prior versions of PostgreSQL use the operating system timezone so installing an older PostgreSQL (e.g. 9.0) would be the only way to have it follow the time on your Mac. Another thing you could try is to create copies of the postgresql.conf file for the timezones you travel to and then you can substitute the file as and when required without the editing by just renaming the one you need to use.
Flag_Hippo
Moderator
 
Posts: 15215
Joined: Tue Jan 31, 2012 7:50 am


Return to PT4 for macOS

Who is online

Users browsing this forum: No registered users and 18 guests

cron
highfalutin