Set displayed date (view) to UTC+2 ('Europe/Paris')

This commit is contained in:
xdrm-brackets 2017-09-17 14:17:09 +02:00
parent 08f93e18e6
commit c96089523c
1 changed files with 6 additions and 2 deletions

View File

@ -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);