-
Problem report
-
Resolution: Unresolved
-
Trivial
-
None
-
4.0.25, 5.0.4, 5.2.0beta1
Problem description: No errors are thrown in case when the clock widget receives a timestamp with incorrect data format. Furthermore for some specific received values the widget starts showing time that is incorrect in respect to the timestamp sent to the widget.
For example such problem may occur if the user sets "Time type" parameter to Host time and selects an item with key "system.localtime" in field "Item" instead of "system.localtime[local]".
Steps to reproduce:
- Create a new dashboard
- Create 3 "Clock" widgets
- For the 1st widget set "Time type" to "Local time"
- For the 2nd widget set "Time type" to "Server time"
- For the 3rd widget set "Time type" to "Host time" and select "System local time" item (with key = "system.localtime") of Zabbix server in "Item" field
- Save the dashboard.
Result: Time on the 1st and the 2nd widget is correct, but the 3rd widget displays some random time (04:03 in the gif) or is shown as disabled.
Expected: the 3rd widget should return an error, because the timestamp format that was sent to the 3rd widget was incorrect.
Example of a timestamp for which the widget shows some random time = 1601465006