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

Manual enrolments user date in a course doesn´t show correct time.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 2.3, 2.3.1
    • Enrolments
    • MOODLE_23_STABLE

      When you enrol user manually to a course alway appear a default time, for example: 00:00 or 12:00. This is not correct, and is important to know, not only the date of an enrolment, also the time.

      FULL STEPS:
      1) moodle/enrol/users.php?id=X
      2) Enrol some user using manual method
      3) On "Enrolment methods" column, you see date, and time is default.

      I found a solution:

      1) File: moodle/enrol/manual/ajax.php, line 105
      2) Change this line:
      $today = make_timestamp(date('Y', $today), date('m', $today), date('d', $today), 0, 0, 0);
      with this one:
      $today = make_timestamp(date('Y', $today), date('m', $today), date('d', $today), date('H', $today), date('i', $today), 0);

      I have tested this solution, and its works!

            Unassigned Unassigned
            dacapri David Cabrera Primo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.