Wrong Behaviour of Datebox when Overwriting Time

asked 2013-12-20 07:15:01 +0800

inci02 gravatar image inci02

updated 2014-01-06 08:14:07 +0800

The „Date and Time Picker" (datebox) has a very strange behaviour when trying to modify the time (in 24-hour mode).

It can be reproduced on http://www.zkoss.org/zkdemo/input/date_and_time_picker (http://www.zkoss.org/zkdemo/input/dateandtime_picker) in the field "Long and Medium" as follows:

  1. Click on the calendar symbol in the datebox.
  2. Modify the time to anything between 04:00:00 and 09:59:59 or anything between 14:00:00 and 19:59:59.
  3. Hit enter.
  4. Click on the calendar symbol in the datebox again.
  5. Mark the entire time expression.
  6. Hit the "2".
  7. It appears "02".

I noticed this when I wanted to enter 23:59:59 but instead got 02:35:09.

Additional info:
The same behavior under ie10 and current Firefox.
This issue is not only on the demo side it occures also on my application.

delete flag offensive retag edit


Normal functionality with ie9

chillworld ( 2013-12-20 08:17:32 +0800 )edit

Hi nci02, in our demo site, how do you change time to 24-hour mode? did you tested with the other site?

jimmyshiau ( 2013-12-23 01:21:46 +0800 )edit

Hi jimmy, it is allready in 24-hour mode see "Long+Medium" text field

inci02 ( 2014-01-09 12:46:18 +0800 )edit

Hi, I have posted a bug tracker here: http://tracker.zkoss.org/browse/ZK-2152

jimmyshiau ( 2014-02-06 06:18:00 +0800 )edit
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools




Asked: 2013-12-20 07:15:01 +0800

Seen: 19 times

Last updated: Jan 06 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More