Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.5
    • Fix Version/s: 3.1 RC2
    • Component/s: None
    • Labels:
    • Last commented by a User:
      true

      Description

      The javadoc for DateTimeFormat says

      "For custom formatting, set the pattern() attribute to be the DateTime pattern, such as yyyy/mm/dd h:mm:ss a."

      This is example is misleading. MM is for month, while mm is for minutes - the example uses minutes where month is expected.
      Someone who isn't paying attention will use the example pattern and wonder why their month is always January.

      example should probably be "yyyy/MM/dd hh:mm:ss a" (capital M for moneths, extra h for hours)

        Attachments

          Activity

            People

            • Assignee:
              cbeams Chris Beams
              Reporter:
              pradtke Patrick Radtke
              Last updater:
              Spring Issuemaster
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 1 week, 4 days ago