How to set database time zone in application.ini

前端 未结 4 2045
一生所求
一生所求 2021-02-04 02:20

I have an application in Zend Framework that has to run for a different time zone than the server. Is there an option to set the database server (MySQL in this case) time zone i

4条回答
  •  遇见更好的自我
    2021-02-04 02:52

    This works for me:

    resources.db.adapter = "Pdo_Mysql"
    resources.db.params.driver_options.1002 = "SET NAMES 'utf8', CHARACTER SET 'utf8', time_zone = 'Europe/London'"
    

提交回复
热议问题