将数据推送到Heroku时出错:时区位移超出范围 [英] Error when pushing data to Heroku: time zone displacement out of range

查看:151
本文介绍了将数据推送到Heroku时出错:时区位移超出范围的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我运行以下命令将本地数据库的内容推送到Heroku:

  heroku db:push --app我的应用程序

从我的家用计算机上可以完美地工作,但是从我的工作计算机中得到这个错误: / p>


Taps服务器错误:PGError:错误:时区位移超出范围:2011-11-15 12:00:00.000000 + 5894114400

我不确定那个日期来自哪里,我无法在任何地方找到它。任何想法和/或如何解决它? 使用Ruby 1.9.2-p290而不是1.9.3 -p0为我修好了。 根据Roger Braun ,这就是原因:


问题是(我认为),编组在Ruby 1.9.2
和1.9.3之间变化,所以这不是真正的抽头错误。只要使用任何
版本的heroku运行来推送和拉取数据库(可能是1.9.2)。



I run the following command to push the contents of my local database to Heroku:

heroku db:push --app my-app

From my home computer this works flawlessly but from my work computer I get this error:

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

I'm not sure where that date is coming from, I can't find it in the data anywhere. Any ideas what's going on and/or how to fix it?

解决方案

Using Ruby 1.9.2-p290 instead of 1.9.3-p0 fixed it for me. According to Roger Braun, this is the reason:

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).

这篇关于将数据推送到Heroku时出错:时区位移超出范围的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆