src/Forms/TimeField.php
protected function getInternalFormatter()
    {
        $formatter = IntlDateFormatter::create(
            i18n::config()->uninherited('default_locale'),
            IntlDateFormatter::NONE,
            IntlDateFormatter::MEDIUM,
            date_default_timezone_get() // Default to server timezone
        );
        $formatter->setLenient(false);

        // Note we omit timezone from this format, and we assume server TZ always.
        $formatter->setPattern(DBTime::ISO_TIME);

        return $formatter;
    }
protected function getInternalFormatter()
    {
        $formatter = IntlDateFormatter::create(
            i18n::config()->uninherited('default_locale'),
            IntlDateFormatter::NONE,
            IntlDateFormatter::MEDIUM,
            date_default_timezone_get() // Default to server timezone
        );
        $formatter->setLenient(false);

        // Note we omit timezone from this format, and we assume server TZ always.
        $formatter->setPattern(DBTime::ISO_TIME);

        return $formatter;
    }
protected function getInternalFormatter ( ) { $ formatter = IntlDateFormatter :: create ( i18n :: config ( ) -> uninherited ( 'default_locale' ) , IntlDateFormatter :: NONE , IntlDateFormatter :: MEDIUM , date_default_timezone_get ( ) // Default to server timezone ) ; $ formatter -> setLenient ( false ) ; // Note we omit timezone from this format, and we assume server TZ always. $ formatter -> setPattern ( DBTime :: ISO_TIME ) ; return $ formatter ; }
Get a time formatter for the ISO 8601 format

@return IntlDateFormatter
Get a time formatter for the ISO 8601 format