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

The short datetime format is unsupported in en_us langconfig.php (mm/dd/YYYY)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9.7
    • Fix Version/s: 1.9.7
    • Component/s: Language
    • Labels:
      None
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      The en_us language pack does not contain the string for 'strftimedatetimeshort' which typically contains the date format for the language.

      This is a particular problem as when developing for a particular language in this case US english the correct way to format a date is to use the langconfig.php datetime format.

      The US uses the date format mm/dd/YYYY as opposed to the european / australian english format dd/mm/YYYY the fact that the langconfig.php does not contain the 'strftimedatetimeshort' language string means using this format in the userdate() function returns the european format.

      I notice from searching for this issue in the moodle.org forums that this issue has come up in a number of related posts.

      I have attached the ammended langconfig.php file to this ticket. Hopefully someone responsible for the en_us language pack will be able to update the en_us language pack and make it available on general release.

        Attachments

          Activity

            People

            Assignee:
            koen Koen Roggemans
            Reporter:
            paul.dawson Paul Dawson
            Tester:
            Nobody
            Participants:
            Component watchers:
            cameron1729, David Mudrák (@mudrd8mz), Helen Foster
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              25/Nov/09