Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong duration #613

Open
sam-suresh opened this issue Aug 8, 2024 · 1 comment
Open

Wrong duration #613

sam-suresh opened this issue Aug 8, 2024 · 1 comment
Assignees
Labels
more information needed Need more information from user

Comments

@sam-suresh
Copy link

image

The last call for example, took 4 minutes but it shows 4 seconds.
v5.2.3 (2024072500)

@jrchamp
Copy link
Collaborator

jrchamp commented Aug 8, 2024

Hi @sam-suresh,

It looks like you have the updated version of the code, but the upgrade task may not have run. Specifically:

if ($oldversion < 2024070300) {
// Update existing meeting occurrence duration to seconds.
$occurrences = $DB->get_records('zoom_meeting_details');
foreach ($occurrences as $occurrence) {
$duration = $occurrence->end_time - $occurrence->start_time;
$DB->set_field_select('zoom_meeting_details', 'duration', $duration, 'id = ?', [$occurrence->id]);
}
// Zoom savepoint reached.
upgrade_mod_savepoint(true, 2024070300, 'zoom');
}

Do you know if a Moodle admin has gone through the upgrade steps? If you log in as an admin, or specifically go to /admin/index.php, it should have indicated that an upgrade was necessary.

If Moodle thinks that everything is upgraded, the SQL to fix all of the rows at once looks like:

UPDATE mdl_zoom_meeting_details SET duration = end_time - start_time;

If you have any questions, please let us know.

@jrchamp jrchamp added the more information needed Need more information from user label Aug 8, 2024
@jrchamp jrchamp self-assigned this Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more information needed Need more information from user
Projects
Status: Needs triage
Development

No branches or pull requests

2 participants