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

clock component doesn't display seconds in some Locales

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 1.3.0-beta1
    • 1.3.0-beta2
    • wicket-examples
    • None

    Description

      The Clock component used in ajax Clock and WorldClock examples do not show the seconds with some locales (at least with french locale). This make the example less easy to see in action (updated only once a minute).
      Replacing:
      df = DateFormat.getDateTimeInstance(DateFormat.FULL, DateFormat.FULL);
      by:
      df = DateFormat.getDateTimeInstance(DateFormat.FULL, DateFormat.FULL, Locale.US);

      would make it behave the same whatever the default locale is.

      Attachments

        Activity

          People

            almaw Alastair Maw
            xavier Xavier Hanin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: