Skip to content

Datepicker shows incorrect year when only 2 year digits are entered calendar is expanded #4

@prithvipatil

Description

@prithvipatil

Issue can be simulated using nachocalendar-demo-0.23.jar.

If you manually enter only last 2 digits of year into the DateField and if you click on down arror to expand the calendar:

  • When year value is <=42, Popup shows years starting with 20xx. Where xx is the 2 digit year value you had entered manually.
  • When year value is >=43, Popup shows years starting with 19xx. Where xx is the 2 digit year value you had entered manually.

Please refer to the attached GIF file for the simulation of the issue.

What can be done to fix this behavior? I expect DateField to always shows years starting with 20xx.

nachocalendar_bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions