From e8a9508391328c806426ab1b7ef115398967eae5 Mon Sep 17 00:00:00 2001 From: Deon George Date: Fri, 10 Sep 2021 22:27:00 +1000 Subject: [PATCH] Ping/Test send/recevied time was switched --- app/Classes/FTN/Process/Ping.php | 2 +- app/Classes/FTN/Process/Test.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Classes/FTN/Process/Ping.php b/app/Classes/FTN/Process/Ping.php index 0a09e0d..8521ecb 100644 --- a/app/Classes/FTN/Process/Ping.php +++ b/app/Classes/FTN/Process/Ping.php @@ -33,8 +33,8 @@ final class Ping extends Process $ftns = Setup::findOrFail(config('app.id'))->system->match($msg->fftn_o->zone)->first(); $reply = sprintf("Your ping was received here on %s and it looks like you sent it on %s. If that is correct, then it took %s to get here.\r", - $msg->date->utc()->toDateTimeString(), Carbon::now()->utc()->toDateTimeString(), + $msg->date->utc()->toDateTimeString(), $msg->date->diffForHumans(['parts'=>3,'syntax'=>CarbonInterface::DIFF_ABSOLUTE]) ); diff --git a/app/Classes/FTN/Process/Test.php b/app/Classes/FTN/Process/Test.php index 5d211a7..e98caae 100644 --- a/app/Classes/FTN/Process/Test.php +++ b/app/Classes/FTN/Process/Test.php @@ -35,8 +35,8 @@ final class Test extends Process $ftns = Setup::findOrFail(config('app.id'))->system->match($msg->fftn_o->zone)->first(); $reply = sprintf("Your test was received here on %s and it looks like you sent it on %s. If that is correct, then it took %s to get here.\r", - $msg->date->utc()->toDateTimeString(), Carbon::now()->utc()->toDateTimeString(), + $msg->date->utc()->toDateTimeString(), $msg->date->diffForHumans(['parts'=>3,'syntax'=>CarbonInterface::DIFF_ABSOLUTE]) );