Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有几个取决于时区的 rake 任务。
Rails 应用程序默认时区是 +5:30 GMT,时区在 rails 应用程序中是正确的,但在 rake 任务中,默认时区是 GMT,我如何更改 rake 任务中的默认时区?
Rails 应用程序自动将 sql 查询转换为
WHERE (orders.created_at >= '2013-01-08 18:30:00.000000' AND orders.created_at <= '2013-01-09 18:29:59.999999')
我需要手动编辑查询