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

"undefined" date on site blog comment

    XMLWordPrintable

Details

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

    Description

      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());

      Attachments

        Issue Links

          Activity

            People

              poltawski Dan Poltawski
              miquel_puig Miquel Puig i Pey
              Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie, Amaia Anabitarte, Bas Brands, Carlos Escobedo, Laurent David, Raquel Ortega, Sabina Abellan, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: