ZABBIX BUGS AND ISSUES

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

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major 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. ;)
  • Zabbix ID:
    NA

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

Activity

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: