Passing Date with # ruby's Timecop.freeze will cause the date to shift, so it may be better to pass Time.local
Timecop.freeze Date.new(2019, 01, 01)
# => 2018-12-31 15:00:00 +0000
Date.today
# => Mon, 31 Dec 2018
Timecop.freeze ::Time.local(2019, 01, 01)
# => 2019-01-01 00:00:00 +0000
Date.today
# => Tue, 01 Jan 2019
Original by Github issue
チャットメンバー募集
何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。