Calendar control autofills the wrong date

  • 16 February 2021
  • 0 replies
  • 8 views

Userlevel 5
Badge +20
 

Calendar control autofills the wrong date

kbt154721

PRODUCT
K2 blackpearl 4.7
BASED ON
K2 blackpearl 4.7
TAGS
Controls
SmartForms
This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.
LEGACY/ARCHIVED CONTENT
This article has been archived, and/or refers to legacy products, components or features. The content in this article is offered "as is" and will no longer be updated. Archived content is provided for reference purposes only. This content does not infer that the product, component or feature is supported, or that the product, component or feature will continue to function as described herein.

Issue

If you have configured your Calendar control to display both date and time, and you enter only the time into the Calendar control's textbox, the control will automatically add the current date to the time you have entered when you focus away from the control.

However, at times users noticed that the Calendar control fills in an older date, and not the current date. For example, if today is 10 October 2018, after filling in the time in the control's textbox, then clicking away, the Calendar control fills in 09 October 2018 instead of 10 October 2018.

Symptoms

  • This issue appears randomly.
  • If the form with the Calendar control is left open, and the next day the user continues to use the form, the Calendar control will fill in the date the form was first opened. Refreshing the form will not fix the issue.

Resolution

This has been acknowledged as a bug to be addressed in a future version of K2.

The workaround is to advice users NOT to fill in the time into the textbox, and let the Calendar control fill in the date. Use the calendar in the Calendar control to pick the correct date and time.


0 replies

Be the first to reply!

Reply