M
M
Maxim Grechushnikov2014-12-10 14:02:17
PHP
Maxim Grechushnikov, 2014-12-10 14:02:17

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

1 answer(s)
A
Alexey Volegov, 2014-12-10
@maxyc_webber

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 question

Ask a Question

731 491 924 answers to any question