Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-20197

Incorrect time calculations when using month/year argument

    XMLWordPrintable

Details

    • Problem report
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • None
    • None
    • Server (S)
    • None

    Description

      The zbx_tm_sub()/zbx_tm_add() functions do not correctly handle 'month overruns'.

      For example if you try to subtract 1 month from the last day of March it will return 3rd of March rather than 28/29th of February.

      Attachments

        Activity

          People

            zabbix.dev Zabbix Development Team
            wiper Andris Zeila
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: