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

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.3
    • Fix Version/s: 1.8.3
    • Component/s: Frontend (F)
    • Labels:
      None
    • Environment:
      after revision 11583 (changed zbx_date2str function).
      In locales where the full name of the month of "May" is longer than three letters. ;)

      Description

      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).

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: