forked from extern/egroupware
daylight saving fix for today from Christian
This commit is contained in:
parent
5d88ca4e00
commit
cd9ecdf019
@ -816,6 +816,12 @@ class uiviews extends uical
|
|||||||
|
|
||||||
$day_start = $this->bo->date2ts((string)$day_ymd);
|
$day_start = $this->bo->date2ts((string)$day_ymd);
|
||||||
|
|
||||||
|
// if daylight saving is switched on or off, correct $day_start
|
||||||
|
// gives correct times after 2am, times between 0am and 2am are wrong
|
||||||
|
if(($daylight_diff = $day_start + 12*HOUR_s - ($this->bo->date2ts($day_ymd."T120000"))))
|
||||||
|
{
|
||||||
|
$day_start -= $daylight_diff;
|
||||||
|
}
|
||||||
// sorting the event into columns with none-overlapping events, the events are already sorted by start-time
|
// sorting the event into columns with none-overlapping events, the events are already sorted by start-time
|
||||||
$eventCols = $col_ends = array();
|
$eventCols = $col_ends = array();
|
||||||
foreach($events as $event)
|
foreach($events as $event)
|
||||||
|
Loading…
Reference in New Issue
Block a user