Report this

What is the reason for this report?

PHP date() time not corresponding with system time

Posted on June 24, 2020

I set the right server time with the help of this tutorial: https://www.digitalocean.com/community/tutorials/how-to-set-up-time-synchronization-on-ubuntu-16-04

When I type “date” in the console, the correct time is now shown. But the PHP date(‘H:i’) command still shows 2 hours earlier. I have reset Apache2.

How can this happen and what can I do about it?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.