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

Function "zbx_date2str" wrongly convert long name of month "May"

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Major Major
    • 1.8.3
    • 1.8.3
    • Frontend (F)
    • None
    • after revision 11583 (changed zbx_date2str function).
      In locales where the full name of the month of "May" is longer than three letters. ;)

      In locales where the length of the name of the month of May is longer than three letters, rather than the short name of the month long display.
      This is because in sequential replacement of names in the function "zbx_date2str" replacement of the month of May at the long name is always.
      $output = str_replace(date('F',$value), $monthslong[date('n',$value)], $output);

      See screenshort.
      Please Fix the logic of replacement names.

      On locales EN, RU this bug is not visible (visible as normal).

        1. report2-zbx2372-r12061.png
          32 kB
          Oleksii Zagorskyi
        2. short_month_MAY_incorrect.png
          12 kB
          Oleksii Zagorskyi

            Unassigned Unassigned
            zalex_ua Oleksii Zagorskyi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: