Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-4235

Datefmt parseDate always return date between 1930-2029 when using yy format

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Normal Normal
    • 8.6.2
    • 8.6.1
    • None
    • Security Level: Jimmy
    • None
    • ZK 8.6.2 S1, ZK 8.6.2 S2
    • None

      Steps to Reproduce

      run fiddle
      http://zkfiddle.org/sample/1iabu9j/4-ZK-datefmt-parse-1900

      Current Result

      date set as 2030 parses as 1930
      date set as 2029 parses as 2029

      Expected feature Result

      Datebox should have an option to choose if dates formated with yy should parse to 19yy or 20yy (or a combination with a switch date between 19yy and 20yy)

      Debug Info

      https://github.com/zkoss/zk/blob/master/zul/src/archive/web/js/zul/db/datefmt.js#L239-L242

            Leon03 Leon03
            MDuchemin MDuchemin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1 day Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 1 hour
                1d 1h