Handling Timezones in Rails - DEV Community
23-Jun-2023 869
The missing guide to handling timezones in Rails and PostgreSQL.I wanted to write this guide to be your new default practice to handling time zones in Ruby on Rails. This was a hard-won lesson I learned from working a calendar scheduling app a few years back. I want you to stop converting time in your application. This is already a solved problem, no need for Rails devs to do it!! I know you have the sneaky timezone converter code, and it needs to go!I always read on the internet that your application should use UTC for all the database related time zone information, but there is some setup that is needed in order to realize the effectiveness of this practice.
Handling Timezones in Rails - DEV Community #ruby #rubydeveloper #rubyonrails #Handling #Timezones #Rails #Community #dev https://rubyonrails.ba/link/handling-timezones-in-rails-dev-community