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

Badge expiry calculation error (PostgreSQL)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.8.1
    • Fix Version/s: None
    • Component/s: Badges
    • Labels:
    • Affected Branches:
      MOODLE_38_STABLE

      Description

      Badge images on the "Issued Badge Information" page (badge.php) are incorrectly stamped with the "EXPIRED" overlay image.  When the user hovers over the image, the following tool-tip appears: "This Badge Expired on Thursday 1 January 1970."   (ref. attached image).

      The unix timestamp values in the table 'course_completions' are correct based on the actual course enrolment, start and completion dates.  I would suggest whatever logic is used to display the EXPIRED overlay stamp is failing to convert the unix timestamp (which is why we are left with a reference to 1970). 

      The very same badge thumbnail appears [correctly] via mybadges.php (Manage Badges) without the 'EXPIRED' overlay image (ref. attached image).

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            ianv Ian Van Kretschmar
            Participants:
            Component watchers:
            Yuliya Bozhko, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated: