Ad Widget

Collapse

Dates showing up with 0000 for the year

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ldam
    Junior Member
    • Jul 2009
    • 2

    #1

    Dates showing up with 0000 for the year

    I have a zabbix installation that's been up for about a month, collecting data and generally working very well except recently I noticed the dates on the audit logs page are showing up as, for example, "0000.Jul.22 11:32:10" with the year being "0000."

    Not sure how to add screen shots, but here's what a typical line of the audit log shows via the web frontend:

    Code:
    Time          User  Resource Action Details 
    0000.Jul.22 11:32:10 guest User Login Correct login [XXXX] 
    0000.Jul.22 10:40:31 guest User Login Correct login [XXXX] 
    0000.Jul.21 17:03:26 XXXX Action Updated Actions [5,6] disabled

    I took a look in the database and everything seemed fine:

    Code:
    mysql> select * from auditlog order by auditid desc limit 10;
    +---------+--------+------------+--------+--------------+-------------------------------------------------------+
    | auditid | userid | clock      | action | resourcetype | details                                               |
    +---------+--------+------------+--------+--------------+-------------------------------------------------------+
    |    1370 |      2 | 1248276730 |      3 |            0 | Correct login [XXXX]                                  | 
    |    1369 |      2 | 1248273631 |      3 |            0 | Correct login [XXXX]                                  | 
    |    1368 |      3 | 1248210206 |      1 |            5 |  Actions [5,6] disabled                               |
    With these entries corresponding to the ones from the web interface above. I converted the timestamps and they convert to proper 2009 dates.


    Has anyone come across this situation? I have America/Toronto set up as my timezone although any problems here would mean the entire date and time should be off, not just the year.

    This also manifests itself into a few other sections of the frontend, such as when generating an availability report, the year is reported as 0000 as well.
  • ldam
    Junior Member
    • Jul 2009
    • 2

    #2
    Nevermind. I've found the problem.

    I'm using php 5.2.10 which has a known bug in the date functions on some platforms: http://bugs.php.net/bug.php?id=48708

    Comment

    Working...