Add "nicetime" formatted date string to tracking API output

master
Skylar Ittner 3 years ago
parent bacbaf7cac
commit de8b5a8f2d

@ -127,6 +127,7 @@ class TrackingInfo {
"status" => TrackingStatus::statusToString($this->getCurrentStatus()->getStatus()),
"details" => $this->getCurrentStatus()->toString(),
"datetime" => $this->getCurrentStatus()->getDateTime(),
"nicetime" => $this->getCurrentStatus()->getDateTime("F j g:i a"),
"timestamp" => $this->getCurrentStatus()->getTimestamp(),
"containerscan" => $this->getCurrentStatus()->isContainerScan(),
"location" => [
@ -175,6 +176,7 @@ class TrackingInfo {
"status" => TrackingStatus::statusToString($history->getStatus()),
"details" => $history->toString(),
"datetime" => $history->getDateTime(),
"nicetime" => $history->getDateTime("F j g:i a"),
"timestamp" => $history->getTimestamp(),
"containerscan" => $history->isContainerScan(),
"location" => [

Loading…
Cancel
Save