Hi there,
I'm having an issue with the time zone settings in PHP that are causing the dates and times to show up like in the screenshot below.
[cid:image002.png@01D04603.E5407F80]
After searching for a bit I found a thread that mentioned that the time zone needed to be set in the php.ini file (/etc/php5/cli/php.ini). I changed the setting and restarted apache but the date and time are still showing incorrectly in Observium. I even restarted the sever to no aval.
Here is a snippet of the php.ini time/date config
[Date] ; Defines the default timezone used by the date functions ; http://php.net/date.timezone date.timezone = Australia/Sydney
; http://php.net/date.default-latitude ;date.default_latitude = 31.7667
; http://php.net/date.default-longitude ;date.default_longitude = 35.2333
; http://php.net/date.sunrise-zenith ;date.sunrise_zenith = 90.583333
; http://php.net/date.sunset-zenith ;date.sunset_zenith = 90.583333
Is there anything I have missed?
Thanks, Aaron
What value did you set?
Tomasz Karczewski
Administrator Sieci
tkarczewski@man.olsztyn.pl
http://www.man.olsztyn.pl http://www.uwm.edu.pl
tel. (89) 523 45 55 fax. (89) 523 43 47
Ośrodek Eksploatacji i Zarządzania
Miejską Siecią Komputerową OLMAN w Olsztynie
Uniwersytet Warmińsko-Mazurski w Olsztynie
From: observium [mailto:observium-bounces@observium.org] On Behalf Of Aaron Smith Sent: Wednesday, February 11, 2015 4:20 AM To: observium@observium.org Subject: [Observium] php time zone issue
Hi there,
I'm having an issue with the time zone settings in PHP that are causing the dates and times to show up like in the screenshot below.
After searching for a bit I found a thread that mentioned that the time zone needed to be set in the php.ini file (/etc/php5/cli/php.ini). I changed the setting and restarted apache but the date and time are still showing incorrectly in Observium. I even restarted the sever to no aval.
Here is a snippet of the php.ini time/date config
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = Australia/Sydney
; http://php.net/date.default-latitude
;date.default_latitude = 31.7667
; http://php.net/date.default-longitude
;date.default_longitude = 35.2333
; http://php.net/date.sunrise-zenith
;date.sunrise_zenith = 90.583333
; http://php.net/date.sunset-zenith
;date.sunset_zenith = 90.583333
Is there anything I have missed?
Thanks, Aaron
I'm likewise seeing this same issue; my observium server is located in the US Central TZ, and is both polling and receiving syslog data from devices in both US Central and US Mountain timezones. The information from the US Central devices are shown just fine; the information syslogged/eventlogged from the US Mountain timezone show up just the same as you have in your screenshot below.
I have not looked into the php.ini file, I'll have a try making that change, but am not sure that will make any difference.
.Ron
From: observium [mailto:observium-bounces@observium.org] On Behalf Of Aaron Smith Sent: Tuesday, February 10, 2015 9:20 PM To: observium@observium.org Subject: [Observium] php time zone issue
Hi there,
I'm having an issue with the time zone settings in PHP that are causing the dates and times to show up like in the screenshot below.
After searching for a bit I found a thread that mentioned that the time zone needed to be set in the php.ini file (/etc/php5/cli/php.ini). I changed the setting and restarted apache but the date and time are still showing incorrectly in Observium. I even restarted the sever to no aval.
Here is a snippet of the php.ini time/date config
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = Australia/Sydney
; http://php.net/date.default-latitude
;date.default_latitude = 31.7667
; http://php.net/date.default-longitude
;date.default_longitude = 35.2333
; http://php.net/date.sunrise-zenith
;date.sunrise_zenith = 90.583333
; http://php.net/date.sunset-zenith
;date.sunset_zenith = 90.583333
Is there anything I have missed?
Thanks, Aaron
participants (3)
-
Aaron Smith
-
Ron Marosko
-
Tomasz Karczewski