Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-49440

Date picker displays duplicated names for week days

XMLWordPrintable

      In some languages (update: languages with lang string indicating first day of week = Monday) date picker popup contains too many table cells with names of week days - see screenshots.
      Number of columns in calendar is okay (seven), but duplicated week days unnecessarily enlarge the control, that looks broken in result.
      I found the problem specifically when editing due dates for Assignment, but wherever the date picker is used, the problem repeats consistently.

      In default English locale everything is okay, so this may have been unnoticed for a while. I've checked some language packs using http://demo.moodle.net/ and the problem can be reproduced in number of them.

      Tested:

      • en - OK
      • fr - BROKEN
      • it - OK
      • ja - OK
      • nl - OK
      • pl - BROKEN
      • cs - BROKEN

      On last Thursday when I was looking for clues, at least in one language (can't remember which one, sorry) the popup looked good, but it contained English names of week days.
      So I suspect the problem might be related to language packs, but I was unable to confirm that. The date picker is full JavaScript YUI and I was looking in PHP code that could invoke it or prepare input data, however without success.

      update: please also see MDL-49488 - when locale was not correctly set calendar threw a JS error (that issue is closed as deferred to this one)

        1. date-picker-2.8-cz.png
          30 kB
          Wiktor Wandachowicz
        2. date-picker-2.8-en.png
          30 kB
          Wiktor Wandachowicz
        3. date-picker-2.8-fr.png
          32 kB
          Wiktor Wandachowicz
        4. date-picker-2.8-it.png
          29 kB
          Wiktor Wandachowicz
        5. date-picker-2.8-ja.png
          21 kB
          Wiktor Wandachowicz
        6. date-picker-2.8-nl.png
          30 kB
          Wiktor Wandachowicz
        7. date-picker-2.8-pl.png
          33 kB
          Wiktor Wandachowicz

            pferre22 Pau Ferrer
            wiktorw Wiktor Wandachowicz
            Andrew Lyons Andrew Lyons
            Dan Poltawski Dan Poltawski
            Simey Lameze Simey Lameze
            Votes:
            4 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.