add services logic

This commit is contained in:
root
2026-03-11 01:38:20 -04:00
parent 182036cc41
commit 3e6c577085
47 changed files with 918 additions and 1772 deletions
@@ -0,0 +1,18 @@
<?php
namespace Tests\Unit\Services\System;
use App\Services\System\TimeService;
use Tests\TestCase;
class TimeServiceTest extends TestCase
{
public function test_to_utc_and_to_local_round_trip(): void
{
$service = new TimeService();
$utc = $service->toUtc('2025-01-01 12:00:00', 'America/New_York');
$local = $service->toLocal($utc, 'UTC', 'America/New_York');
$this->assertSame('2025-01-01 12:00:00', $local);
}
}