Answer the question
In order to leave comments, you need to log in
Ubuntu, PHP: How to set the time?
How to set the time correctly? I'm sort of confused...
****@****Projects:~$ date
Wed. dec. 10 13:00:01 FET 2014
****@****Projects:~$ php -a
Interactive shell
php > echo date('dmY H:i:s');
10.12.2014 15:00:05 php
>
Answer the question
In order to leave comments, you need to log in
In php.ini, explicitly set your timezone.
You can update / set the time zone in the system How to change time zone settings from the command line
Follow the link for an example of how to reconfigure and how to manually specify the time zone for the system
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question