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

Oleksiy Zagorskyi made changes -
Field Original Value New Value
Attachment short_month_MAY_incorrect.png [ 12841 ]
Alexei Vladishev made changes -
Assignee Maxim Andruhovich [ maxim.andruhovich ]
Maxim Andruhovich made changes -
Status Open [ 1 ] Resolved [ 5 ]
Assignee Maxim Andruhovich [ maxim.andruhovich ] richlv [ richlv ]
Resolution Fixed [ 1 ]
Oleksiy Zagorskyi made changes -
Resolution Fixed [ 1 ]
Status Resolved [ 5 ] Reopened [ 4 ]
Maxim Andruhovich made changes -
Assignee richlv [ richlv ] Maxim Andruhovich [ maxim.andruhovich ]
Maxim Andruhovich made changes -
Status Reopened [ 4 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Oleksiy Zagorskyi made changes -
Resolution Fixed [ 1 ]
Status Resolved [ 5 ] Reopened [ 4 ]
Oleksiy Zagorskyi made changes -
Attachment report2-zbx2372-r12061.png [ 12971 ]
Maxim Andruhovich made changes -
Status Reopened [ 4 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
richlv made changes -
Status Resolved [ 5 ] Tested [ 10002 ]
Maxim Andruhovich made changes -
Status Tested [ 10002 ] Closed [ 6 ]

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: