Skip to content
Snippets Groups Projects
Commit 97de4274 authored by Regis Houssin's avatar Regis Houssin
Browse files

Fix: bad conversion if records is a float number

parent d20a9503
Branches
Tags
No related merge requests found
......@@ -2674,8 +2674,7 @@ function migrate_project_task_time($db,$langs,$conf)
{
// convert to second
// only for int time and float time ex: 1,75 for 1h45
$time = str_replace(',','.',$obj->task_duration);
$time = floatval($time);
$time = floatval($obj->task_duration);
list($hour,$min) = explode('.',$time);
$hour = $hour*60*60;
$min = ($min/100)*60*60;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment