how to set mysql2 timezone option to remove query warning
- by user347765
I always get warning when use mysql2 do query
/usr/local/lib/ruby/gems/1.9.1/gems/mysql2-0.2.6/lib/active_record/connection_adapters/mysql2_adapter.rb:463: warning: :database_timezone option must be :utc or :local - defaulting to :local
I did see a option for Timezones
Mysql2 now supports two timezone options:
:database_timezone - this…