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

"undefined" date on site blog comment

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 2.4.3
    • Blog, Comments
    • MOODLE_24_STABLE

      When loaded via ajax, comments on a site blog entry are shown as "undefined", this is easily fixed by changing line 188 in comment/comment.js from:

      val = val.replace('__time__', list[i].time);

      to:

      val = val.replace('__time__', new Date(list[i].timecreated*1000).toDateString());

            poltawski Dan Poltawski
            miquel_puig Miquel Puig i Pey
            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.