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

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

      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.

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

              Created:
              Updated: