protected function formatDatetime(\DateTimeInterface $value): string
    {
        try {
            $datetime = new \DateTimeImmutable('now', $this->getTimezone());
        } catch (\Exception $e) {
            throw new DriverException($e->getMessage(), $e->getCode(), $e);
        }

        return $datetime->setTimestamp($value->getTimestamp())->format(static::DATETIME);
    }