Strip time zone part from Time in Ruby
ruby-on-rails, time, timezone
Solution
You can use `time.strftime('%Y-%m-%d %H:%M:%S')` as used by activesupport in eg
Time.now.to_s(:db)
source
Problem
How to strip time zone part from Time leaving date and time parts intact? Currently I am using strftime function. My end goal is to query MySQL with local time for sure. I should be sure that local time won't be suddenly converted to something else.