summaryrefslogtreecommitdiff
path: root/pages/jobs.inc
diff options
context:
space:
mode:
Diffstat (limited to 'pages/jobs.inc')
-rw-r--r--pages/jobs.inc30
1 files changed, 5 insertions, 25 deletions
diff --git a/pages/jobs.inc b/pages/jobs.inc
index ae1405d..109b484 100644
--- a/pages/jobs.inc
+++ b/pages/jobs.inc
@@ -86,31 +86,11 @@ $history = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/
<b>Job lifetime:</b>
<ul class="tracking">
- <li><b>Queued by PHP</b><br><?php
- $d = explode("|", substr(date('M jS Y, G:i|s.u', strtotime($item["tracking"]["queue"])), 0, -3));
- $d[1] = (string)((float)$d[1]);
- echo($d[0] . ":" . $d[1]);
- ?></li>
- <?php if (isset($item["tracking"]["pickup"])): ?><li><b>Picked up by the runner</b><br><?php
- $d = explode("|", substr(date('M jS Y, G:i|s.u', strtotime($item["tracking"]["pickup"])), 0, -3));
- $d[1] = (string)((float)$d[1]);
- echo($d[0] . ":" . $d[1]);
- ?></li><?php endif; ?>
- <?php if (isset($item["tracking"]["start"])): ?><li><b>Started</b><br><?php
- $d = explode("|", substr(date('M jS Y, G:i|s.u', strtotime($item["tracking"]["start"])), 0, -3));
- $d[1] = (string)((float)$d[1]);
- echo($d[0] . ":" . $d[1]);
- ?></li><?php endif; ?>
- <?php if (isset($item["tracking"]["end"])): ?><li><b><?= $item["completed"] ? "Finished" : "Failed" ?></b><br><?php
- $d = explode("|", substr(date('M jS Y, G:i|s.u', strtotime($item["tracking"]["end"])), 0, -3));
- $d[1] = (string)((float)$d[1]);
- echo($d[0] . ":" . $d[1]);
- ?></li><?php endif; ?>
- <?php if (isset($item["tracking"]["logged"])): ?><li><b>Tracking logged</b><br><?php
- $d = explode("|", substr(date('M jS Y, G:i|s.u', strtotime($item["tracking"]["logged"])), 0, -3));
- $d[1] = (string)((float)$d[1]);
- echo($d[0] . ":" . $d[1]);
- ?></li><?php endif; ?>
+ <li><b>Queued by PHP</b><br><?= date('M jS Y, G:i:s', strtotime($item["tracking"]["queue"])) ?></li>
+ <?php if (isset($item["tracking"]["pickup"])): ?><li><b>Picked up by the runner</b><br><?= date('M jS Y, G:i:s', strtotime($item["tracking"]["pickup"])) ?></li><?php endif; ?>
+ <?php if (isset($item["tracking"]["start"])): ?><li><b>Started</b><br><?= date('M jS Y, G:i:s', strtotime($item["tracking"]["start"])) ?></li><?php endif; ?>
+ <?php if (isset($item["tracking"]["end"])): ?><li><b><?= $item["completed"] ? "Finished" : "Failed" ?></b><br><?= date('M jS Y, G:i:s', strtotime($item["tracking"]["end"])) ?></li><?php endif; ?>
+ <?php if (isset($item["tracking"]["logged"])): ?><li><b>Tracking logged</b><br><?= date('M jS Y, G:i:s', strtotime($item["tracking"]["logged"])) ?></li><?php endif; ?>
</ul>
</div>
</div>