Ale*_*dre 2 time ruby-on-rails date
在我的 Rails 应用程序中,我将date数据库中的 a 与Time.now:
Event.date_start >= Time.now
Run Code Online (Sandbox Code Playgroud)
但是Event.date_start是 ActiveSupport::TimeWithZone
一切正常,但我想知道将 aTime与 a进行比较TimeWithZone是否正确,如果不是这种情况,该怎么做?
| 归档时间: |
|
| 查看次数: |
1760 次 |
| 最近记录: |