Ticket #800 (closed defect: duplicate)
DateField: midnight (hours = 0) renders empty hours
| Reported by: | Jani Laakso | Owned by: | Jani Laakso |
|---|---|---|---|
| Priority: | major | Milestone: | 4.0.3 |
| Component: | undefined | Version: | 4.0.2 |
| Keywords: | Cc: | ||
| Known Issue description: | |||
| Hours estimate: | Deadline (dd.mm.yyyy): | ||
| Known Issue version (since): | Known Issue title: | ||
| Hours done: | Depends to: | ||
| Affects documentation: | no | ||
| Known Issue workaround: | |||
| Affects release notes: | yes | Contract: | |
Description
Use this:
java.util.Date date = new java.util.Date(); date.setHours(0); DateField df = new DateField(); df.setValue(date); df.setResolution(DateField.RESOLUTION_SEC);
or..
Open Feature browser / DateField? demo, set resolution to second. Set time to 24:30 (means half past midnight), click "SET" => DateField? component hour is empty, should read 24 (or 0)
Bug was verified with IE 7, 4.0.2-rc3 and trunk with FF 2 (Linux)
I Suspect this is because Select on client-side has values from 1 to 24, but no 0. And on server-side we have values from 0 to 23.
Change History
Note: See
TracTickets for help on using
tickets.
