show bucket times in human readable format
smbaker [Thu, 1 Nov 2012 05:31:23 +0000 (22:31 -0700)]
apps/gacksadmin/account.php

index c74cd06..99c7461 100644 (file)
@@ -179,20 +179,25 @@ if (($bucketAccount) && (array_key_exists("bucketAnalysis", $bucketAccount))) {
     $toggle->start();\r
 \r
     $headers=array();\r
+    $headers["i"] = "integer";\r
     $headers["time"] = "string";\r
     $headers["balance"] = "string";\r
     $headers["in-use"] = "string";\r
 \r
-    $table = new PlekitTable("bucketAnalysis", $headers, 1);\r
+    $table = new PlekitTable("bucketAnalysis", $headers, 0);\r
     $table->start();\r
 \r
+    $i=0;\r
     $bucketAnalysis = $bucketAccount['bucketAnalysis'];\r
     foreach ( $bucketAnalysis as $row ) {\r
         $table->row_start();\r
-        $table->cell($row[0]);\r
+        $table->cell($i);\r
+        $table->cell(strftime("%Y-%m-%d %H:%M:%S", $row[0] + $timezone_seconds));\r
         $table->cell($row[1]);\r
         $table->cell($row[2]);\r
         $table->row_end();\r
+\r
+        $i=$i+1;\r
     }\r
 \r
     $table->end();\r