Add "nicetime" formatted date string to tracking API output
This commit is contained in:
parent
bacbaf7cac
commit
de8b5a8f2d
@ -127,6 +127,7 @@ class TrackingInfo {
|
|||||||
"status" => TrackingStatus::statusToString($this->getCurrentStatus()->getStatus()),
|
"status" => TrackingStatus::statusToString($this->getCurrentStatus()->getStatus()),
|
||||||
"details" => $this->getCurrentStatus()->toString(),
|
"details" => $this->getCurrentStatus()->toString(),
|
||||||
"datetime" => $this->getCurrentStatus()->getDateTime(),
|
"datetime" => $this->getCurrentStatus()->getDateTime(),
|
||||||
|
"nicetime" => $this->getCurrentStatus()->getDateTime("F j g:i a"),
|
||||||
"timestamp" => $this->getCurrentStatus()->getTimestamp(),
|
"timestamp" => $this->getCurrentStatus()->getTimestamp(),
|
||||||
"containerscan" => $this->getCurrentStatus()->isContainerScan(),
|
"containerscan" => $this->getCurrentStatus()->isContainerScan(),
|
||||||
"location" => [
|
"location" => [
|
||||||
@ -175,6 +176,7 @@ class TrackingInfo {
|
|||||||
"status" => TrackingStatus::statusToString($history->getStatus()),
|
"status" => TrackingStatus::statusToString($history->getStatus()),
|
||||||
"details" => $history->toString(),
|
"details" => $history->toString(),
|
||||||
"datetime" => $history->getDateTime(),
|
"datetime" => $history->getDateTime(),
|
||||||
|
"nicetime" => $history->getDateTime("F j g:i a"),
|
||||||
"timestamp" => $history->getTimestamp(),
|
"timestamp" => $history->getTimestamp(),
|
||||||
"containerscan" => $history->isContainerScan(),
|
"containerscan" => $history->isContainerScan(),
|
||||||
"location" => [
|
"location" => [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user