summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2012-09-11 16:31:54 +0000
committerRomain d'Alverny <rda@mageia.org>2012-09-11 16:31:54 +0000
commitfd9ab7903bebb93ef0e3124e41f24057901b2871 (patch)
treea05bfcff362ba187b42123113a2d807dd1a86d69
parentf6ba3abfe896443b3924e4e9eb4b7e06e96d0d1e (diff)
downloadpkgsubmit-fd9ab7903bebb93ef0e3124e41f24057901b2871.tar
pkgsubmit-fd9ab7903bebb93ef0e3124e41f24057901b2871.tar.gz
pkgsubmit-fd9ab7903bebb93ef0e3124e41f24057901b2871.tar.bz2
pkgsubmit-fd9ab7903bebb93ef0e3124e41f24057901b2871.tar.xz
pkgsubmit-fd9ab7903bebb93ef0e3124e41f24057901b2871.zip
time is shown in UTC for now
-rw-r--r--lib.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib.php b/lib.php
index 50d70ad..819c3bb 100644
--- a/lib.php
+++ b/lib.php
@@ -529,11 +529,15 @@ S;
$rows = implode(', ', $rows);
return <<<S
function draw_buildschedule_chart() {
+ var UTCOffsetInHours = new Date().getTimezoneOffset()/-60;
+ //alert(UTCOffsetInHours);
+ //TODO rotate hours in \$rows so it represents local time.
+
var data = google.visualization.arrayToDataTable([
{$rows}
]);
var options = {
- title: 'When do builds happen? (CET)',
+ title: 'When do builds happen? (UTC - working on a local time fix)',
hAxis: {title: 'Hours'},
'width':500,
'height':200,