1
「The difference of.current
和.now
是.now
使用服務器的時區,而.current
使用什麼樣的Rails環境設置爲(Time.zone
),如果沒有設置,那麼.current
將同樣作爲.now
。」使用Time.now或Time.current爲10.minutes.ago?
當我做10.minutes.ago
,是Rails使用Time.current
還是Time.now
?
3爲參考文獻。 –