mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-08 08:12:17 +01:00
Fixed timezone problem in unit tests
This commit is contained in:
committed by
Constantin Graf
parent
8b50f33cc9
commit
78ea8a673b
@@ -147,8 +147,8 @@ class TimeEntryFactory extends Factory
|
||||
{
|
||||
return $this->state(function (array $attributes) use ($start, $durationInSeconds): array {
|
||||
return [
|
||||
'start' => $start->utc(),
|
||||
'end' => $start->copy()->addSeconds($durationInSeconds),
|
||||
'start' => $start->copy()->utc(),
|
||||
'end' => $start->copy()->utc()->addSeconds($durationInSeconds),
|
||||
];
|
||||
});
|
||||
}
|
||||
@@ -157,7 +157,7 @@ class TimeEntryFactory extends Factory
|
||||
{
|
||||
return $this->state(function (array $attributes) use ($start): array {
|
||||
return [
|
||||
'start' => $start->utc(),
|
||||
'start' => $start->copy()->utc(),
|
||||
];
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user