Skip to content
Snippets Groups Projects
Commit 11104438 authored by Thorben Laprell's avatar Thorben Laprell
Browse files

add_little_info

parent 3b3d86e3
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,7 @@ class query_helper {
$mondaytimestamp = $startdate->getTimestamp();
$year = date("Y");
$summertimestart = false; //bool if you are in summertime
$changedate = strtotime("last Sunday",mktime(0,0,0,4,1,$year+1))+7200;
$changedate = strtotime("last Sunday",mktime(0,0,0,4,1,$year+1))+7200; //timestamp of the next Daylight saving date
if ((strtotime("last Sunday",mktime(0,0,0,4,1,$year))+7200) < $mondaytimestamp) {
if ((strtotime("last Sunday",mktime(0,0,0,11,1,$year))+14400) > $mondaytimestamp) {
$summertimestart = true;
......@@ -52,9 +52,6 @@ class query_helper {
} else {
$changedate = strtotime("last Sunday",mktime(0,0,0,4,1,$year))+7200;
}
// TODO Implement Daylight saving offeset
// This does not work very well if daylight saving comes into play, then all old
// dates will be shifted by 1 hour...
// returns points between 0 - 167 (24*7 data points), where 0 => Mon,0-1am; 1 => Mon,1-2am; ...
$query = <<<SQL
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment