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

{{#userdate}} in template files

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not a bug
    • Affects Version/s: 3.9.5
    • Fix Version/s: None
    • Component/s: Themes
    • Labels:
      None
    • Affected Branches:
      MOODLE_39_STABLE

      Description

      I am following this guide https://docs.moodle.org/dev/Templates#.7B.7B.23_userdate_.7D.7D_.28Moodle_3.3_onwards.29 to include date in my templates header.

      I am adding this code in me header.mustache file, but it always returns date:  11 January 1970.

      Code added in template: {{#userdate time, #str strftimedate /str /userdate}}

      It seem it don't recognize value {{time.}}

      How to fix this?

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            Bļujus Rolands
            Participants:
            Component watchers:
            Huong Nguyen, Bas Brands, Mathew May
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: