Could you tell me how to modify the php server time to test whether our time algorithm is correct, not to modify the time zone? For example, the server Date and Time? How can I modify the php server time to test our time pair? is the algorithm correct?
Can I modify the specific time when I modify the time zone, such as the server date and time?
Reply content:
How can I modify the php server time to test whether our time algorithm is correct?
Can I modify the specific time when I modify the time zone, such as the server date and time?
Why must I modify the server time?
// Server time code date_default_timezone_set ("PRC"); $ data = date ("Y-m-d l H: I: s A"); function ($ data) {....}
// Test code date_default_timezone_set ("PRC"); // $ data = date ("Y-m-d l H: I: s "); $ data = '2017-4-27 17:59:56 '; // custom value assignment function ($ data ){....}