How to solve the problem of different display time and actual time by php
This article mainly explains "php how to solve the problem of display and actual time difference", the content of the explanation is simple and clear, easy to learn and understand, now please follow the editor's train of thought slowly in depth, together to study and learn "php how to solve the problem of display and actual time difference"!
1. Use "ini_set ('date.timezone','PRC')" to set the time zone.
2. Use "date_default_timezone_set ('PRC')" to set the time zone.
3. In the configuration file, set "date.timezone=PRC".
[Date]; Defines the default timezone used by the date functions; http://php.net/date.timezone;date.timezone = Thank you for your reading, the above is the content of "how to solve the problem of display and actual time difference between php". After the study of this article, I believe you have a deeper understanding of how php solves the problem of display and actual time difference, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!