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

Fix support for %P modifier in format strings on macOS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 3.1.4, 3.2
    • Calendar
    • MOODLE_31_STABLE, MOODLE_32_STABLE

      According to the docs for strftime the %P modifier isn't supported on macOS. From some testing it seems that %p is supported but incorrectly output the result as uppercase instead of lower.

      This means that uses of the %P or %p modifier in format strings passed to the userdate function won't output the expected strings on macOS.

      We can add a similar fix to calendar/type/gregorian/classes/structure.php in the timestamp_to_date_string function which is already correcting the %I modifier.

            Unassigned Unassigned
            ryanwyllie Ryan Wyllie
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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