Can not change maintenance period on WEB UI Frontend with PostgreSQL

XMLWordPrintable

    • Type: Incident report
    • Resolution: Duplicate
    • Priority: Blocker
    • None
    • Affects Version/s: 2.0.6
    • Component/s: Frontend (F)

      On Zabbix 2.0.6 we can not change maintenance period on WEB UI Frontend with PostgreSQL.
      But it does not occur with MySQL.

      As you understand by seeing attached patch, date('YmdHi', $_REQUEST['timeperiods'][$edit_timeperiodid]['start_date']); creates integer value like 201307191057. But it is larger than the DB acceptable value. As MySQL is fool, it converts to integer maximum value. But PostgreSQL does not and issues error.
      Though $_REQUEST['new_timeperiod']['start_date'] is almont meanleas variable, I choose non problem value.

      It must be applied to 1.8.16.

            Assignee:
            Unassigned
            Reporter:
            MATSUDA Daiki
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: