Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-9355

Date.format provides wrong week number value (end of year bug)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 2.5.8
    • None
    • groovy-runtime
    • None

    Description

      executing the following code (on December 29, 2019) 

      print new Date().format('yyyy.ww') 

      will output:

      2019.01 

      where the expected value would be 2019.52

      Attachments

        Activity

          People

            Unassigned Unassigned
            ezer Ezer Karavani
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: