0 ) { $org = \RoosterLMS\Domain\Services::org_repo()->get( $org_id ); if ( null !== $org && '' !== $org->timezone ) { try { $zone = new \DateTimeZone( $org->timezone ); } catch ( \Exception $e ) { unset( $e ); } } } return wp_date( 'Y-m-d', self::timestamp(), $zone ); } public static function freeze( ?int $timestamp ): void { self::$frozen = $timestamp; self::$frozen_ms = null; } public static function freeze_ms( ?int $ms ): void { self::$frozen_ms = $ms; self::$frozen = null === $ms ? null : intdiv( $ms, 1000 ); } }