Ruby on Rails Time Without Time Zone

Nauman Tariq
2 min readJul 23, 2022

In Ruby and Rails, there is no class dedicated to time-of-day, so 2000–01–01 is used for the time. ActiveModel implements a Time class to reflect the database type of time. And it will convert the time according to your app’s timezone Rails.application.config.time_zone

Suddenly, our time has increased by 10/11 hours after upgrading our Rails 4 application to Rails 5, since it took 08:31:00 and…

--

--