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

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

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: 8.6.1
    • Fix Version/s: 8.6.2
    • Component/s: None
    • Security Level: Jimmy
    • Labels:
      None
    • gh.sprint.customfield.default.name:
      ZK 8.6.2 S1, ZK 8.6.2 S2

      Description

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  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