Commit 081b50eb authored by Bate's avatar Bate

Test planning

parent dd5db6aa
......@@ -88,7 +88,15 @@ $gaps = $planning->get_gaps();
while( list($gap_id) = $gaps->get_row())
{
$planning->add_user_to_gap($gap_id,8276,strtotime('2013-06-12 00:00:00'), strtotime('2013-06-20 00:00:00'));
$date = strtotime('2013-06-15 00:00:00');
$date = strtotime(date('o-\\WW',$date));
$start = strtotime($start)+$date;
$end = strtotime($end)+$date;
$start =date("Y-m-d H:i:s",$start);
$end =date("Y-m-d H:i:s",$end);
echo "$date\n";
echo "$start\n";
echo "$end\n";
$users = $planning->get_users_for_gap($gap_id,strtotime('2013-06-15 00:00:00'));
list( $id_utl, $nom_utl) = $users->get_row();
echo "Utl $id_utl: $nom_utl\n";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment