Ad Widget

Collapse

date/timezone problem, zabbix 1.4 source install

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Taro
    Junior Member
    • Jun 2007
    • 2

    #1

    date/timezone problem, zabbix 1.4 source install

    Hi,

    I installed Zabbix 1.4 from source on a Ubuntu 6.10 machine, almost everything seems to work, except for any features that use the date function. I get this error message:

    # date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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 'America/New_York' for 'EDT/-4.0/DST' instead[/var/www/in/zabbix/report4.php:41]

    I have set the timezone, and restarted both Apache and the zabbix server, multiple times. I also tried setting the timezone to 'America/New_York' just for fun, but I still get the same error.

    See below for my environment:
    # echo $TZ
    America/Montreal
    # grep -i timezone /etc/php5/apache2/php.ini
    ; Defines the default timezone used by the date functions
    date.timezone = 'America/Montreal'

    Any suggestions?

    Thanks in advance.
  • Taro
    Junior Member
    • Jun 2007
    • 2

    #2
    Oops... never mind.

    It was the single quotes around 'America/Montreal' that was causing the problem. I removed those and it's all happy.

    Comment

    Working...