From c7b75b834973cd62fea4b33717e46bbeb198de52 Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Fri, 17 Jun 2022 00:29:26 +0800 Subject: [PATCH] fix format_datetime when null use current --- app/Console/Commands/Test.php | 8 ++------ include/constants.php | 2 +- include/globalfunctions.php | 3 +++ 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/app/Console/Commands/Test.php b/app/Console/Commands/Test.php index a25e54ce..ab43adf2 100644 --- a/app/Console/Commands/Test.php +++ b/app/Console/Commands/Test.php @@ -78,12 +78,8 @@ class Test extends Command */ public function handle() { - $arr = [ - 'uid' => 1, - 'torrent_id' => 1, - 'action_type' => 'ban', - ]; - TorrentOperationLog::query()->create($arr); + $r = Carbon::parse(null); + dd($r); } diff --git a/include/constants.php b/include/constants.php index 14f62e18..1f49a6f8 100644 --- a/include/constants.php +++ b/include/constants.php @@ -1,6 +1,6 @@ format($format);