. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Statistics\Repository; use Fisharebest\Webtrees\Functions\FunctionsDate; use Fisharebest\Webtrees\Statistics\Repository\Interfaces\ServerRepositoryInterface; /** * A repository providing methods for server related statistics. */ class ServerRepository implements ServerRepositoryInterface { /** * @inheritDoc */ public function serverDate(): string { // TODO: Duplicates BrowserRepository::browserDate return FunctionsDate::timestampToGedcomDate(WT_TIMESTAMP)->display(); } /** * @inheritDoc */ public function serverTime(): string { return date('g:i a'); } /** * @inheritDoc */ public function serverTime24(): string { return date('G:i'); } /** * @inheritDoc */ public function serverTimezone(): string { return date('T'); } }