summaryrefslogtreecommitdiff
path: root/pages/jobs.inc
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-04-02 23:03:02 +0200
committerRaindropsSys <contact@minteck.org>2023-04-02 23:03:02 +0200
commit02eda3e4c9b4ba718f1fff70b7328ed8cdd5e63b (patch)
tree6d1dec61008998aadc6b69f7e750712794d99324 /pages/jobs.inc
parentf559308a1b42a9036135d764374a8c007b7d70a9 (diff)
downloadpluralconnect-02eda3e4c9b4ba718f1fff70b7328ed8cdd5e63b.tar.gz
pluralconnect-02eda3e4c9b4ba718f1fff70b7328ed8cdd5e63b.tar.bz2
pluralconnect-02eda3e4c9b4ba718f1fff70b7328ed8cdd5e63b.zip
Updated 35 files, added 11 files and deleted includes/components/search.inc (automated)
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>