[ZBX-14798] Date and time fields need improvements Created: 2018 Aug 31  Updated: 2024 Apr 10  Resolved: 2018 Oct 09

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: None
Fix Version/s: 4.0.1rc1, 4.2.0alpha1, 4.2 (plan)

Type: Problem report Priority: Trivial
Reporter: Larisa Grigorjeva Assignee: Gregory Chalenko
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Selection_027.png    
Team: Team D
Team: Team D
Sprint: Sprint 41, Sprint 42, Sprint 43, Sprint 44
Story Points: 1

 Description   

*I. Incorrect zero rounding in date and time fields *

Steps:
1. Create Maintenance - fill all fields
2. In first tab, in Active till field enter date and time in following way: "2019-0-0 0" and save the form
Result:
In Maintenances list observe that Active till date and time is: "2019-12-31 23:59", because zero in all fields except year is rounded to maximal month, day, hour and minute.
Expected:
Time 0 shold be saved as 00:00.
If date is typed in with zeros instead month or day, error should be shown:
"Field "Active till" is not correct: an explicit time is expected"

In its turn Active since field rounds zeros to minimal moth or day, which is also wrong.

II. Time typed in with only one digit should be transformed in standard time format 23:00:00 in field and in time selector tab
Steps:
1. Open any Graph
2. Fill in "From" and "To" fields:
From: 2018-09-02 13:45:07
To: 2018-09-03 9
3. Press Apply
Result
4. Observe that on Graph time To is rounded and presented as "2018-09-03 9:59" - Expected
5. Observe that in "To" field and on Timeline's Tab time remained as "9".
Expected:
Time should be transformed to standard format and display rounding "2018-09-03 9:59" in all places:

  • Field
  • Tab


 Comments   
Comment by Gregory Chalenko [ 2018 Sep 19 ]

RESOLVED in development branch svn://svn.zabbix.com/branches/dev/ZBX-14798

Comment by Gregory Chalenko [ 2018 Oct 08 ]

Fixed in:

  • 4.0.1rc1 r85611
  • 4.2.0alpha1 r85610
Generated at Fri Apr 19 13:14:14 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.