Skip to content
This repository has been archived by the owner on Mar 8, 2021. It is now read-only.

Timecopが実行環境のタイムゾーンに影響を受けてしまう #83

Open
demmys opened this issue Nov 3, 2015 · 1 comment

Comments

@demmys
Copy link
Contributor

demmys commented Nov 3, 2015

ref: #82 (comment)

問題点

アプリケーション内のTime.nowはconfig.time_zoneで設定されたものが使用されるが、結果を判断するRSpec内で呼ばれるTime.nowは実行環境のタイムゾーンを使用するため、ローカルPC(タイムゾーンはJST)ではPassするテストがwercker(タイムゾーンはUTC)で失敗する。

現状

現状では明示的に9時間を足すことでテストの失敗を隠蔽している。

@demmys demmys changed the title Timecopが実行環境の Timecopが実行環境のタイムゾーンに影響を受けてしまう Nov 3, 2015
@miyukki
Copy link
Contributor

miyukki commented Mar 10, 2016

これ、werckerのタイムゾーンを調整したらよいのか?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants