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

Assignment messages unnecessarily abbreviate the date

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.4.8, 4.5.4, 5.0
    • Assignment

      In assignment notification messages, the time is shown abbreviated, like "Wed, 7 Sep 2025, 11:05" (strftimerecentfull).

      However, within the text of an email, space is not limited, and so there seems not good reason for this, so we should use the more common opption which is to call userdate() with no particular format specified. That defaults to something most appropriate for the current calendar. For the default Gregorian calendar that is strftimedaydatetime "Wednesday, 7 September 2025, 11:05". Doing that means that the date displayed in the email is the same as the format used in the web pages when dates are shown in the assignment tool.

      Also, I imagine that the unabbreviated dates can only be more accessible.

            timhunt Tim Hunt
            timhunt Tim Hunt
            Sam Marshall Sam Marshall
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 30 minutes
                30m

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