From dfebf31c02b79e0f8026ba0a907bab7be7554b57 Mon Sep 17 00:00:00 2001 From: FHenry Date: Tue, 22 May 2012 12:54:03 +0200 Subject: [PATCH] Correct strat date and end date to be midnight rather than midday --- htdocs/projet/fiche.php | 4 ++-- htdocs/projet/tasks/task.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/projet/fiche.php b/htdocs/projet/fiche.php index d4293bea9ef..cb11932f48a 100644 --- a/htdocs/projet/fiche.php +++ b/htdocs/projet/fiche.php @@ -124,8 +124,8 @@ if ($action == 'add' && $user->rights->projet->creer) $project->description = GETPOST('description','alpha'); $project->public = GETPOST('public','alpha'); $project->datec=dol_now(); - $project->date_start=dol_mktime(12,0,0,GETPOST('projectmonth','int'),GETPOST('projectday','int'),GETPOST('projectyear','int')); - $project->date_end=dol_mktime(12,0,0,GETPOST('projectendmonth','int'),GETPOST('projectendday','int'),GETPOST('projectendyear','int')); + $project->date_start=dol_mktime(0,0,0,GETPOST('projectmonth','int'),GETPOST('projectday','int'),GETPOST('projectyear','int')); + $project->date_end=dol_mktime(0,0,0,GETPOST('projectendmonth','int'),GETPOST('projectendday','int'),GETPOST('projectendyear','int')); $result = $project->create($user); if ($result > 0) diff --git a/htdocs/projet/tasks/task.php b/htdocs/projet/tasks/task.php index a8ebfba5b16..c7f983aa2d5 100644 --- a/htdocs/projet/tasks/task.php +++ b/htdocs/projet/tasks/task.php @@ -69,8 +69,8 @@ if ($action == 'update' && ! $_POST["cancel"] && $user->rights->projet->creer) $object->label = $_POST["label"]; $object->description = $_POST['description']; $object->fk_task_parent = $task_parent; - $object->date_start = dol_mktime(12,0,0,$_POST['dateomonth'],$_POST['dateoday'],$_POST['dateoyear']); - $object->date_end = dol_mktime(12,0,0,$_POST['dateemonth'],$_POST['dateeday'],$_POST['dateeyear']); + $object->date_start = dol_mktime(0,0,0,$_POST['dateomonth'],$_POST['dateoday'],$_POST['dateoyear']); + $object->date_end = dol_mktime(0,0,0,$_POST['dateemonth'],$_POST['dateeday'],$_POST['dateeyear']); $object->progress = $_POST['progress']; $result=$object->update($user);