Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generate_checkout_params 時間不正確 #3

Open
odin1in opened this issue Dec 30, 2015 · 3 comments
Open

generate_checkout_params 時間不正確 #3

odin1in opened this issue Dec 30, 2015 · 3 comments

Comments

@odin1in
Copy link

odin1in commented Dec 30, 2015

Time.now 導致傳至歐付寶的時間不正確

是使用 generate_checkout_params 時,要自行傳入 Time.zone.now / Time.current 去覆蓋嗎?

@tonytonyjan
Copy link
Owner

Ruby 有 Time.zone.now 這個寫法嗎?這是 Rails 的吧?
另外我想知道歐付寶回傳什麼訊息,感謝!

@odin1in
Copy link
Author

odin1in commented Jan 4, 2016

沒錯,因為我也覺得在純ruby 中引入 activesupport 好像不太好。

不是歐付寶回傳的訊息不正確,而是新增訂單後,進歐付寶看訂單時間的時區會不正確。

@tonytonyjan
Copy link
Owner

你先試試如果 Time.now.getlocal 可以解決這個問題的話,可以送 PR,或是等到我有空來處理這個 issue(可能會很久XD)

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

No branches or pull requests

2 participants