Ticket #800 (closed defect: duplicate)

Opened 19 months ago

Last modified 17 months ago

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

Changed 17 months ago by Jani Laakso

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to 4.0.3

Fixed in [2148].

Changed 17 months ago by Jani Laakso

  • status changed from closed to reopened
  • resolution deleted

Duplicate to #800

Changed 17 months ago by Jani Laakso

  • status changed from reopened to closed
  • resolution set to duplicate

Changed 17 months ago by Jani Laakso

Duplicate to #857.

Note: See TracTickets for help on using tickets.