Skip to content
Browse files

git viewer

  • Loading branch information...
1 parent 337a259 commit e91d2460bae42b68641d352bc6fcd385e6f3fe1a Kevin Wojcik committed
Showing with 9 additions and 7 deletions.
  1. +1 −0 .gitignore
  2. +2 −1 copy
  3. +2 −2 php/main.php
  4. +1 −1 php/plot.php
  5. +2 −2 php/site.php
  6. +1 −1 php/work.php
View
1 .gitignore
@@ -1 +1,2 @@
*.pyc
+repo
View
3 copy
@@ -1 +1,2 @@
-cp -r js config images css php python index.html /Library/WebServer/Documents
+rm -rf /Library/WebServer/Documents/repo/* /Library/WebServer/Documents/repo/.git
+cp -r repo/* js config images css php python index.html /Library/WebServer/Documents
View
4 php/main.php
@@ -1,5 +1,5 @@
<?php
-date_default_timezone_set('America/Los_Angeles');
+date_default_timezone_set('UTC');
$dir = 'sqlite:/tmp/python/database';
$dbh = new PDO($dir) or die("cannot open the database");
$query = "SELECT * FROM machine";
@@ -8,7 +8,7 @@
$timestamp = time();
echo '<table id="sites_table" class="tablesorter">';
-echo '<thead><tr><th>Status</th><th>Location</th><th>Name</th><th >Uptime</th><th>Last Update</th></tr></thead>';
+echo '<thead><tr><th>Status</th><th>Location</th><th>Name</th><th >Uptime</th><th>Last Update (UTC)</th></tr></thead>';
echo '<tbody>';
foreach ($dbh->query($query) as $row)
{
View
2 php/plot.php
@@ -1,5 +1,5 @@
<?php
- date_default_timezone_set('America/Los_Angeles');
+ date_default_timezone_set('UTC');
$type = $_GET['type'];
$start = $_GET['start'];
$end = $_GET['end'];
View
4 php/site.php
@@ -1,5 +1,5 @@
<?php
- date_default_timezone_set('America/Los_Angeles');
+ date_default_timezone_set('UTC');
$id = $_GET['id'];
$xml = simplexml_load_file("../config/disk.conf");
@@ -32,7 +32,7 @@
echo '<table id="disks_table" class="tablesorter">';
- echo '<tr><th>Status</th><th>Device</th><th>Size</th><th>Used</th><th>Mount</th><th>Last changed</th></tr>';
+ echo '<tr><th>Status</th><th>Device</th><th>Size</th><th>Used</th><th>Mount</th><th>Last changed (UTC)</th></tr>';
foreach ($stmt->fetchAll() as $disk)
{
$disk_id = $disk[0];
View
2 php/work.php
@@ -1,5 +1,5 @@
<?php
- date_default_timezone_set('America/Los_Angeles');
+ date_default_timezone_set('UTC');
$type = $_GET['type'];

0 comments on commit e91d246

Please sign in to comment.
Something went wrong with that request. Please try again.