fix gitlab tests
This commit is contained in:
@@ -50,7 +50,7 @@ class TimeService
|
||||
public function toUtc($value, ?string $fromTz = null, string $format = 'Y-m-d H:i:s'): ?string
|
||||
{
|
||||
$dt = $this->parse($value, $fromTz);
|
||||
if (! $dt) {
|
||||
if (!$dt) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ class TimeService
|
||||
public function toLocal($value, ?string $sourceTz = null, ?string $targetTz = null, string $format = 'Y-m-d H:i:s'): ?string
|
||||
{
|
||||
$dt = $this->parse($value, $sourceTz);
|
||||
if (! $dt) {
|
||||
if (!$dt) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -70,7 +70,7 @@ class TimeService
|
||||
public function formatLocal($value, string $format = 'Y-m-d', ?string $sourceTz = null): string
|
||||
{
|
||||
$dt = $this->parse($value, $sourceTz);
|
||||
if (! $dt) {
|
||||
if (!$dt) {
|
||||
return '';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user