理論
前提として、理論に関してはこちらが良くまとまっています。
Railsと周辺のTimeZone設定を整理する (active_record.default_timezoneの罠)
実践
実際、運用する場合はこちらの内容を踏まえてコーディングルールを作る。
要点

UTC+0:00 からの差分が12を越えるタイムゾーンも存在する。もはや、別の日。

基本的に、日付や時間表記はActiveSupport::TimeWithZone
クラスで表現しておくようにする。
関連するサンプルコード。タイムゾーンの扱いを注意する必要がある。
Comments
Goodに追加
– Time.current