Dealing with PHP server and MySQL server in different time zones

后端 未结 5 557
眼角桃花
眼角桃花 2020-12-13 11:30

For those of us who use standard shared hosting packages, such as GoDaddy or Network Solutions, how do you handle datetime conversions when your hosting server (PHP) and MyS

5条回答
  •  自闭症患者
    2020-12-13 12:06

    I save all my dates as a bigint due to having had issues with the dateTime type before. I save the result of the time() PHP function into it, now they count as being in the same timezone :)

提交回复
热议问题