Postgres error “invalid value for parameter ”TimeZ

2020-05-18 04:29发布

Jupitor$ bundle exec rake db:create db:migrate
APP_development already exists
rake aborted!
PG::Error: ERROR:  invalid value for parameter "TimeZone": "UTC"
: SET time zone 'UTC'

I keep getting this error when trying to migrate to my postgres database. help would be much appreciated!

15条回答
【Aperson】
2楼-- · 2020-05-18 04:59

just restarting the database helped. Homebrew updated my Postgres installation and I did not restart yet.

查看更多
Melony?
3楼-- · 2020-05-18 05:01

I also had this problem.

Login to the database then issue:

set time zone utc;
查看更多
该账号已被封号
4楼-- · 2020-05-18 05:02

I had the same problem using the Postgres.app from Heroku. Rebooting my Mac solved it.

查看更多
登录 后发表回答