Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-2995

DateTime bug with a date pattern without separator

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.7
    • 1.4.10
    • wicket-datetime
    • None
    • all

    Description

      HI,

      I am using wicket-datetime-1.3.7.jar
      When i use a datePattern with a separator dd/MM/yyyy, i get 01/01/2010, it's OK.
      But when i use the datePattern ddMMyyyy, i get 1110 and it's not correct

      The bug is in the substituteDate() method of the wicket-date.js file.

      I have fixed it. I have attached the fixed method and an example of the problem

      Thanks

      Attachments

        1. wicket-date-patch.js
          0.6 kB
          Sylvain MOUQUET
        2. demo_bug.html
          0.4 kB
          Sylvain MOUQUET

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            revo Sylvain MOUQUET
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 10m
                10m
                Remaining:
                Remaining Estimate - 10m
                10m
                Logged:
                Time Spent - Not Specified
                Not Specified