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

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

问题描述

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

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:

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

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?

推荐答案

使用 Ruby 1.9.2-p290 而不是 1.9.3-p0 为我修复了它.据罗杰·布劳恩说,原因如下:

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

问题是(我认为),Ruby 1.9.2 之间的编组发生了变化和 1.9.3,所以这不是一个真正的点击错误.随便用版本 heroku 用于推送和拉取数据库(可能是 1.9.2).

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天全站免登陆