[Pkg-cacti-maint] Bug#667634: cacti uses wrong timezone and logs PHP warnings
Paul Gevers
paul at climbing.nl
Fri Apr 6 18:41:32 UTC 2012
forwarded 667634 http://bugs.cacti.net/view.php?id=2202
tags 667634 wontfix
thanks
Upstream references to http://docs.cacti.net/faq#time_zone_warning where
it says:
[quote]
Time Zone Warning
Similar to the Deprecated Warning, you may see the following warning in
your logs
"""
PHP Warning: strtotime(): 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 'Europe/Berlin' for 'CET/1.0/no
DST' instead in
/usr/share/cacti/include/global_constants.php on line 156
"""
In this case, simply follow the directions. Set your timezone in
/etc/php.ini
"""
; Defines the default timezone used by the date functions
; http://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone
date.timezone =America/Regina
"""
Of course, read
http://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone ,
and find your correct timezone.
As always, restart apache after any change to /etc/php.ini
[/quote]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-cacti-maint/attachments/20120406/1f531ba1/attachment.pgp>
More information about the Pkg-cacti-maint
mailing list