File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
kubernetes/lib/Kubernetes/OpenAPI Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -434,16 +434,16 @@ instance P.Show DateTime where
434434instance MimeRender MimeMultipartFormData DateTime where
435435 mimeRender _ = mimeRenderDefaultMultipartFormData
436436
437- -- | @TI.parseTimeM True TI.defaultTimeLocale "%FT%T%6QZ" @
438- _readDateTime :: (TI. ParseTime t , Monad m , ) => String -> m t
437+ -- | @_parseISO8601 @
438+ _readDateTime :: (TI. ParseTime t , Monad m , Alternative m ) => String -> m t
439439_readDateTime =
440- TI. parseTimeM True TI. defaultTimeLocale " %FT%T%6QZ "
440+ _parseISO8601
441441{-# INLINE _readDateTime #-}
442442
443- -- | @TI.formatTime TI.defaultTimeLocale "%FT%T%6QZ" @
444- _showDateTime :: (TI. FormatTime t ) => t -> String
443+ -- | @TI.formatISO8601Micros @
444+ _showDateTime :: (t ~ TI. UTCTime , TI. FormatTime t ) => t -> String
445445_showDateTime =
446- TI. formatTime TI. defaultTimeLocale " %FT%T%6QZ "
446+ TI. formatISO8601Micros
447447{-# INLINE _showDateTime #-}
448448
449449-- | parse an ISO8601 date-time string
You can’t perform that action at this time.
0 commit comments