Skip to content

Commit 1d5aa0c

Browse files
authored
fix helper now
1 parent f7bcac6 commit 1d5aa0c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/HttpLogger.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Bilfeldt\LaravelHttpClientLogger;
44

55
use Illuminate\Support\Arr;
6+
use Illuminate\Support\Facades\Date;
67
use Illuminate\Support\Facades\Log;
78
use Illuminate\Support\Facades\Storage;
89
use Illuminate\Support\Str;
@@ -54,7 +55,7 @@ protected function getReplace(): array
5455

5556
protected function getFileName(): string
5657
{
57-
return (Arr::get($this->config, 'prefix_timestamp') ? now()->format(Arr::get($this->config, 'prefix_timestamp')) : '')
58+
return (Arr::get($this->config, 'prefix_timestamp') ? Date::now()->format(Arr::get($this->config, 'prefix_timestamp')) : '')
5859
.Arr::get($this->config, 'filename');
5960
}
6061

0 commit comments

Comments
 (0)