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

{{#userdate}} in template files

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not a bug
    • 3.9.5
    • None
    • Themes
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: