With asana api i just want to get list of tasks completed in the last last 5 minutes. For that did below php code. I'm getting list of tasks that are not even closed.
//unix time before 5 minutes
$lastHour = time() - 5 * 60;
//convert to tz format
$last_run = date("Y-m-d\TH:i:s.000\Z", $lastHour);
$args = array('completed_since' => $last_run);
$tasks = $asana->getProjectTasks($project->id, $args);
echo "<pre>"; print_r($tasks );
$tasksJson = json_decode($tasks);
Is there anything wrong in the query?