Page 1 of 1

MNTOS date not correct

Posted: Tue Nov 01, 2016 8:58 am
by warhansen
Hi,

I have successfully installed MNTOS, However the date on the site is not right, even though the date on the server is correct. This is not a major problem but of course it would be better if the date displayed correctly. :D

Any suggestions?

Thanks.

Re: MNTOS date not correct

Posted: Tue Nov 01, 2016 11:01 am
by dwhitfield
MNTOS is not our product, but just glancing at https://github.com/cannibalcow/mntos there seems to be a fair amount about date issues.

Could you post the output of tail -100 /var/log/httpd/error_log? That will help us compare their code to your errors, if any.

Thanks!

Re: MNTOS date not correct

Posted: Wed Nov 02, 2016 4:48 am
by warhansen

Code: Select all

[Wed Nov 02 09:09:06.781883 2016] [:error] [pid 2733] [client 172.21.1.50:64810] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112, referer: http://172.21.1.188/mntos/
[Wed Nov 02 09:10:05.836307 2016] [:error] [pid 2730] [client 172.21.1.50:64926] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112, referer: http://172.21.1.188/mntos/
[Wed Nov 02 09:11:04.034456 2016] [autoindex:error] [pid 26597] [client 127.0.0.1:35007] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Wed Nov 02 09:11:05.893298 2016] [:error] [pid 26471] [client 172.21.1.50:65073] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112, referer: http://172.21.1.188/mntos/
[Wed Nov 02 09:12:05.948790 2016] [:error] [pid 2729] [client 172.21.1.50:65328] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112, referer: http://172.21.1.188/mntos/
[Wed Nov 02 09:13:05.999264 2016] [:error] [pid 26473] [client 172.21.1.50:49273] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112, referer: http://172.21.1.188/mntos/
[Wed Nov 02 09:14:06.058045 2016] [:error] [pid 2728] [client 172.21.1.50:49395] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112, referer: http://172.21.1.188/mntos/
[Wed Nov 02 09:15:05.104383 2016] [:error] [pid 2731] [client 172.21.1.50:49552] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112, referer: http://172.21.1.188/mntos/
[Wed Nov 02 09:16:04.012430 2016] [autoindex:error] [pid 26597] [client 127.0.0.1:35029] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Wed Nov 02 09:16:05.151780 2016] [:error] [pid 2730] [client 172.21.1.50:49796] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112, referer: http://172.21.1.188/mntos/
[Wed Nov 02 09:17:06.202564 2016] [:error] [pid 2733] [client 172.21.1.50:50122] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112, referer: http://172.21.1.188/mntos/
[Wed Nov 02 09:18:05.258291 2016] [:error] [pid 2730] [client 172.21.1.50:50294] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112, referer: http://172.21.1.188/mntos/
[Wed Nov 02 09:19:05.313088 2016] [:error] [pid 26473] [client 172.21.1.50:50450] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112, referer: http://172.21.1.188/mntos/
[Wed Nov 02 09:20:05.359213 2016] [:error] [pid 2734] [client 172.21.1.50:50695] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112, referer: http://172.21.1.188/mntos/
[Wed Nov 02 09:21:03.990155 2016] [autoindex:error] [pid 26473] [client 127.0.0.1:35053] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Wed Nov 02 09:21:05.418623 2016] [:error] [pid 2732] [client 172.21.1.50:51026] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112, referer: http://172.21.1.188/mntos/
[Wed Nov 02 09:22:05.471689 2016] [:error] [pid 2731] [client 172.21.1.50:51158] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112, referer: http://172.21.1.188/mntos/
[Wed Nov 02 09:23:05.517085 2016] [:error] [pid 2732] [client 172.21.1.50:51311] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112, referer: http://172.21.1.188/mntos/
[Wed Nov 02 09:24:05.561539 2016] [:error] [pid 2734] [client 172.21.1.50:51559] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112, referer: http://172.21.1.188/mntos/
[Wed Nov 02 09:25:05.615580 2016] [:error] [pid 2729] [client 172.21.1.50:51881] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112, referer: http://172.21.1.188/mntos/
[Wed Nov 02 09:26:03.967575 2016] [autoindex:error] [pid 26707] [client 127.0.0.1:35075] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Wed Nov 02 09:26:05.670746 2016] [:error] [pid 26473] [client 172.21.1.50:52002] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112, referer: http://172.21.1.188/mntos/
[Wed Nov 02 09:27:05.726350 2016] [:error] [pid 2731] [client 172.21.1.50:52248] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112, referer: http://172.21.1.188/mntos/
[Wed Nov 02 09:28:05.786936 2016] [:error] [pid 2734] [client 172.21.1.50:52494] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112, referer: http://172.21.1.188/mntos/
[Wed Nov 02 09:29:06.851705 2016] [:error] [pid 2729] [client 172.21.1.50:52828] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112, referer: http://172.21.1.188/mntos/
[Wed Nov 02 09:30:05.896386 2016] [:error] [pid 2733] [client 172.21.1.50:52953] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112, referer: http://172.21.1.188/mntos/
[Wed Nov 02 09:31:03.945331 2016] [autoindex:error] [pid 2731] [client 127.0.0.1:35097] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Wed Nov 02 09:31:05.941837 2016] [:error] [pid 26723] [client 172.21.1.50:53102] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112, referer: http://172.21.1.188/mntos/
[Wed Nov 02 09:32:05.993799 2016] [:error] [pid 2730] [client 172.21.1.50:53351] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112, referer: http://172.21.1.188/mntos/
[Wed Nov 02 09:33:06.050921 2016] [:error] [pid 26473] [client 172.21.1.50:53695] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112, referer: http://172.21.1.188/mntos/
[Wed Nov 02 09:34:05.110588 2016] [:error] [pid 2733] [client 172.21.1.50:53824] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112, referer: http://172.21.1.188/mntos/
[Wed Nov 02 09:34:15.923407 2016] [mpm_prefork:notice] [pid 2725] AH00170: caught SIGWINCH, shutting down gracefully
[Wed Nov 02 09:36:51.338155 2016] [suexec:notice] [pid 835] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
AH00557: httpd: apr_sockaddr_info_get() failed for mntos
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
[Wed Nov 02 09:36:51.568390 2016] [auth_digest:notice] [pid 835] AH01757: generating secret for digest authentication ...
[Wed Nov 02 09:36:51.569310 2016] [lbmethod_heartbeat:notice] [pid 835] AH02282: No slotmem from mod_heartmonitor
[Wed Nov 02 09:36:53.414531 2016] [mpm_prefork:notice] [pid 835] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips mod_fcgid/2.3.9 PHP/5.4.16 mod_wsgi/3.4 Python/2.7.5 configured -- resuming normal operations
[Wed Nov 02 09:36:53.414642 2016] [core:notice] [pid 835] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Wed Nov 02 11:38:29.079353 2016] [:error] [pid 2793] [client 172.21.1.50:52314] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112
[Wed Nov 02 11:38:31.404917 2016] [:error] [pid 2205] [client 172.21.1.50:52319] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112
[Wed Nov 02 11:39:05.449752 2016] [:error] [pid 2879] [client 172.21.1.50:52325] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112, referer: http://172.21.1.188/mntos/
[Wed Nov 02 11:40:05.514827 2016] [:error] [pid 2204] [client 172.21.1.50:52473] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112, referer: http://172.21.1.188/mntos/
[Wed Nov 02 11:40:28.036334 2016] [autoindex:error] [pid 2919] [client 127.0.0.1:41777] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Wed Nov 02 11:41:06.565725 2016] [:error] [pid 2795] [client 172.21.1.50:52712] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112, referer: http://172.21.1.188/mntos/
[Wed Nov 02 11:42:05.620589 2016] [:error] [pid 2919] [client 172.21.1.50:53046] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112, referer: http://172.21.1.188/mntos/
[Wed Nov 02 11:43:05.683445 2016] [:error] [pid 2917] [client 172.21.1.50:53309] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112, referer: http://172.21.1.188/mntos/
[Wed Nov 02 11:44:06.731653 2016] [:error] [pid 2204] [client 172.21.1.50:53687] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112, referer: http://172.21.1.188/mntos/
[Wed Nov 02 11:45:05.779786 2016] [:error] [pid 2917] [client 172.21.1.50:54007] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112, referer: http://172.21.1.188/mntos/
[Wed Nov 02 11:46:05.823655 2016] [:error] [pid 2919] [client 172.21.1.50:54107] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112, referer: http://172.21.1.188/mntos/
[Wed Nov 02 11:46:21.441352 2016] [:error] [pid 2795] [client 172.21.1.31:44774] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112
[Wed Nov 02 11:46:23.407241 2016] [:error] [pid 2795] [client 172.21.1.31:44774] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112
[Wed Nov 02 11:46:24.075972 2016] [:error] [pid 2795] [client 172.21.1.31:44774] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112
[Wed Nov 02 11:46:24.476166 2016] [:error] [pid 2795] [client 172.21.1.31:44774] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112
[Wed Nov 02 11:46:24.915670 2016] [:error] [pid 2795] [client 172.21.1.31:44774] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112
[Wed Nov 02 11:46:25.342837 2016] [:error] [pid 2795] [client 172.21.1.31:44774] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112
[Wed Nov 02 11:46:25.761580 2016] [:error] [pid 2795] [client 172.21.1.31:44774] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112
[Wed Nov 02 11:46:26.147697 2016] [:error] [pid 2795] [client 172.21.1.31:44774] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112
[Wed Nov 02 11:46:26.532389 2016] [:error] [pid 2795] [client 172.21.1.31:44774] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112
[Wed Nov 02 11:46:26.933676 2016] [:error] [pid 2795] [client 172.21.1.31:44774] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112
[Wed Nov 02 11:46:27.316125 2016] [:error] [pid 2795] [client 172.21.1.31:44774] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112
[Wed Nov 02 11:46:27.675856 2016] [:error] [pid 2795] [client 172.21.1.31:44774] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112
[Wed Nov 02 11:47:06.735978 2016] [:error] [pid 2206] [client 172.21.1.31:44804] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112, referer: http://172.21.1.188/mntos/
[Wed Nov 02 11:47:06.870319 2016] [:error] [pid 2795] [client 172.21.1.50:54269] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112, referer: http://172.21.1.188/mntos/
[root@mntos mntos-1.0]# 

Re: MNTOS date not correct

Posted: Wed Nov 02, 2016 4:55 am
by warhansen
With regards to:
but please set date.timezone to select your timezone. in /opt/mntos-1.0/www/index.php on line 112
I did try this, and it didn't make a difference, I changed:

Code: Select all

$nowtime = date("s");
to

Code: Select all

$nowtime = date.timezone("s");
but it didn't make a difference.

Thanks

Re: MNTOS date not correct

Posted: Wed Nov 02, 2016 9:11 am
by dwhitfield
Did you try date_default_timezone_set()?

Re: MNTOS date not correct

Posted: Thu Nov 03, 2016 5:28 am
by warhansen
do you mean I should change it to:

Code: Select all

$nowtime = date_default_timezone_set("s");
Tried that now but it didnt make a difference.

Thanks.

Re: MNTOS date not correct

Posted: Thu Nov 03, 2016 9:52 am
by dwhitfield
Did you use the instructions at https://assets.nagios.com/downloads/nag ... Nagios.pdf for install? If not, what instructions did you use? Thanks!

Re: MNTOS date not correct

Posted: Thu Nov 03, 2016 9:54 am
by rkennedy
This error can be solved by making a single change in your php.ini - http://stackoverflow.com/questions/1676 ... e-settings

Code: Select all

[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = America/New_York

Re: MNTOS date not correct

Posted: Fri Nov 04, 2016 2:56 am
by warhansen
@rkennedy, This (the php.ini edit) fixed it! Awesome, thanks. :lol:

You can mark this as solved.