add minutes into talk message
This commit is contained in:
parent
26260359b6
commit
35f9f34c02
@ -3840,8 +3840,16 @@ class Bdd {
|
||||
}
|
||||
$calendarData = $this->getCalendarDataByCalendarObjectUuid($devis->num);
|
||||
$devisTimeValue = VCalendarHelpers::GetStartAndEndTimeFromVCalendarString($calendarData);
|
||||
$devis->startTime = $devisTimeValue["startTime"];
|
||||
$devis->endTime = $devisTimeValue["endTime"];
|
||||
$startTimeValueWithMinutes = "";
|
||||
$endTimeValueWithMinutes = "";
|
||||
if($devisTimeValue["datetimeStart"]){
|
||||
$startTimeValueWithMinutes = $devisTimeValue["datetimeStart"]->format('H\hi');
|
||||
}
|
||||
if($devisTimeValue["datetimeEnd"]){
|
||||
$endTimeValueWithMinutes = $devisTimeValue["datetimeEnd"]->format('H\hi');
|
||||
}
|
||||
$devis->startTime = $startTimeValueWithMinutes;
|
||||
$devis->endTime = $endTimeValueWithMinutes;
|
||||
$devisProducts = $this->getDevisProduits($devisId);
|
||||
$devisProducts = json_encode($devisProducts);
|
||||
$devisProducts = json_decode($devisProducts);
|
||||
|
||||
@ -41,6 +41,8 @@ class VCalendarHelpers
|
||||
$endTimeValue = "";
|
||||
$totalHours = 0;
|
||||
$totalWorkedHours = 0;
|
||||
$dateStart = null;
|
||||
$dateEnd = null;
|
||||
if($vCalendarString != ""){
|
||||
$dateStart = self::GetDateStartOrDateEndFromVCalendarString("DTSTART", $vCalendarString);
|
||||
if($dateStart != null){
|
||||
@ -54,6 +56,8 @@ class VCalendarHelpers
|
||||
$totalWorkedHours = DateHelpers::GetWorkingHoursBetweenDatetimeEndAndDatetimeStart($dateEnd,$dateStart);
|
||||
}
|
||||
return [
|
||||
"datetimeStart" => $dateStart,
|
||||
"datetimeEnd" => $dateEnd,
|
||||
"startTime" => $startTimeValue,
|
||||
"endTime" => $endTimeValue,
|
||||
"totalHours" => $totalHours,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user