Set MySQL database timezone to GMT

前端 未结 3 925
攒了一身酷
攒了一身酷 2020-12-03 11:27

I need to change the timezone of a single database is this possible?

I know we can change the timezone within our WHM (we are using a dedicated server from hostgator

3条回答
  •  一向
    一向 (楼主)
    2020-12-03 12:09

    You can modify the the default value instead of entering current_timestamp make it insert current_timestamp added to hours offset of your timezone. I just did it this way when didn't found any solution, had to invent my own.

提交回复
热议问题