This commit is contained in:
James Cole
2025-10-06 20:43:47 +02:00
parent e420752991
commit 36e87f3383
4 changed files with 11 additions and 2 deletions

View File

@@ -314,7 +314,8 @@ trait ConvertsDataTypes
// is an atom string, I hope?
try {
$carbon = Carbon::parse($value, $value, config('app.timezone'));
$carbon = Carbon::parse($value);
$carbon->setTimezone(config('app.timezone'));
} catch (InvalidDateException $e) { // @phpstan-ignore-line
Log::error(sprintf('[3] "%s" is not a valid date or time: %s', $value, $e->getMessage()));