Incorrect time calculations when using month/year argument

XMLWordPrintable

    • Type: Problem report
    • Resolution: Unresolved
    • Priority: Trivial
    • None
    • Affects Version/s: None
    • Component/s: 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.

            Assignee:
            Zabbix Development Team
            Reporter:
            Andris Zeila
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: