How to convert datetime on a per user basis
问题 I have left my application.rb as it was and by default it is storing datetime in UTC. Now at the UI level (for displaying only) I want to convert the datetime to the user specific timezone. How can I convert the UTC datetime I get from postgresql and then convert it to the timezone that I will store for each user. I want to make this conversion using the Offset so like: -5:00 or +4:00 Is it ok to do this, because I was just checking some locations and it seems their offset changes during the