加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

postgresql – 将数据推送到Heroku时出错:时区位移超出范围

发布时间:2020-12-13 16:44:24 所属栏目:百科 来源:网络整理
导读:我运行以下命令将我的本地数据库的内容推送到Heroku: heroku db:push --app my-app 从我的家庭电脑这工作完美无瑕,但从我的工作电脑我得到这个错误: Taps Server Error: PGError: ERROR: time zone displacement out of range: “2011-11-15 12:00:00.000
我运行以下命令将我的本地数据库的内容推送到Heroku:
heroku db:push --app my-app

从我的家庭电脑这工作完美无瑕,但从我的工作电脑我得到这个错误:

Taps Server Error: PGError: ERROR: time zone displacement out of range: “2011-11-15 12:00:00.000000+5894114400”

我不知道这个日期是从哪里来的,我不能在数据中找到它。任何想法发生了什么和/或如何解决它?

使用Ruby 1.9.2-p290而不是1.9.3-p0固定它。 According to Roger Braun,这是原因:

The problem is (I think),that marshalling changed between Ruby 1.9.2 and 1.9.3,so this is not really a taps error. Just use whatever version heroku runs to push and pull databases (Probably 1.9.2).

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读