Set displayed date (view) to UTC+2 ('Europe/Paris')
This commit is contained in:
parent
08f93e18e6
commit
c96089523c
|
@ -135,11 +135,15 @@
|
|||
$stop_hour = 0;
|
||||
|
||||
/* (2.4.1) Extract time in hour */
|
||||
if( preg_match('@^(\d+):(\d+)$@', $course['startd'], $m) )
|
||||
if( preg_match('@^(\d+):(\d+)$@', $course['startd'], $m) ){
|
||||
$start_hour = $m[1] + $m[2]/60;
|
||||
$course['startd'] = ($m[1]+2) .':'. $m[2];
|
||||
}
|
||||
|
||||
if( preg_match('@^(\d+):(\d+)$@', $course['stopd'], $m) )
|
||||
if( preg_match('@^(\d+):(\d+)$@', $course['stopd'], $m) ){
|
||||
$stop_hour = $m[1] + $m[2]/60;
|
||||
$course['stopd'] = ($m[1]+2) .':'. $m[2];
|
||||
}
|
||||
|
||||
/* (2.4.2) Calc positionning */
|
||||
$top = ($start_hour-CE::$start_h) * $cal_height / (CE::$stop_h-CE::$start_h);
|
||||
|
|
Loading…
Reference in New Issue