Ticket #857 (closed defect: fixed)

Opened 17 months ago

Last modified 17 months ago

DateField returns the wrong date when selected from the calendar + not possible to select hour 00

Reported by: Jonatan Kronqvist Owned by: Matti Tahvonen
Priority: major Milestone: 4.0.3
Component: undefined Version:
Keywords: Cc:
Known Issue description: DateField renders empty value for hours column if resolution is hour or finer and hour value is set to 24 (midnight). Server-side value for DateField is correct even though client-side UI has this issue. Permitted hour values should be from 00 to 23.
Hours estimate: Deadline (dd.mm.yyyy):
Known Issue version (since): 4.0.0 Known Issue title: DateField rendering issue
Hours done: Depends to:
Affects documentation: no
Known Issue workaround:
Affects release notes: yes Contract:

Description

Problems in -removed-: (https://-removed--trac.itmill.com:4443/trac/-removed-/ticket/1156)

  • The wrong date is filled in, when picked from the jscalendar
  • Not possible to select hour 00-23, only 01-24 (which is kind of weird)

Change History

Changed 17 months ago by Matti Tahvonen

  • owner changed from Jani Laakso to Matti Tahvonen
  • status changed from new to assigned

This is due bad use of parseInt funtion in date validation. Strings beginning with 0 (zero) fall into octal mode unless explicitly specified.

Changed 17 months ago by Matti Tahvonen

  • status changed from assigned to closed
  • resolution set to fixed

in [2141]

Changed 17 months ago by Jani Laakso

  • milestone set to 4.0.3

Changed 17 months ago by Jani Laakso

  • status changed from closed to reopened
  • resolution deleted

Issue "Not possible to select hour 00-23, only 01-24" still exists. Note, partially duplicate to #800

Changed 17 months ago by Jani Laakso

I'll check it..

Changed 17 months ago by Jani Laakso

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

Regarding "Not possible to select hour 00-23, only 01-24" Issue was only on client-side UI. If you select "24" for hours, server side gets 00 and datefield's value is correct, but after this hour is not rendered at all (it's empty) on client-side component.

=> Fixed in [2148].

Changed 17 months ago by Jani Laakso

  • known_issue_title set to DateField rendering issue
  • known_issue_since set to 4.0.0
  • known_issue_desc modified (diff)
Note: See TracTickets for help on using tickets.