hey,
I’m using rails 3.0.7
Rails currently store the date-time depending on the server’s timezone
I want it to store date-time always with gmt, and not depending on specific timezone
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Rails time zone is UTC by default in 3.0.7, but you can check config.time_zone in config/application.rb to be sure. You might also verify the time zone is set correctly on your server, by making sure the timezone part of the ‘date’ command looks right.
My dev box:
My deploy box:
Even thought the dev box is set to EDT, and least it knows it’s EDT and Rails can adjust.