chore(lms): add dd-mm-yyyy date format specified in lms interface
This commit is contained in:
parent
7aa0494de6
commit
c1d0f63620
@ -167,6 +167,8 @@ validDateTimeFormats _ SelFormatDate = Set.fromList
|
||||
, DateTimeFormat "%A %d.%m.%Y"
|
||||
, DateTimeFormat "%Y-%m-%d"
|
||||
, DateTimeFormat "%y-%m-%d"
|
||||
, DateTimeFormat "%d-%m-%Y"
|
||||
, DateTimeFormat "%d-%m-%y"
|
||||
]
|
||||
validDateTimeFormats TimeLocale{..} SelFormatTime = Set.fromList . concat . catMaybes $
|
||||
[ Just
|
||||
@ -336,7 +338,7 @@ instance Csv.FromField ZonedTime where
|
||||
return $ utcToZonedTime _ltuResult
|
||||
|
||||
parseFormats = do
|
||||
date <- ["%Y-%m-%d", "%d.%m.%Y"]
|
||||
date <- ["%Y-%m-%d", "%d.%m.%Y", "%d-%m-%Y"]
|
||||
sep <- ["T", " "]
|
||||
doZone <- [True, False]
|
||||
let zone = bool "" "%z" doZone
|
||||
|
||||
Loading…
Reference in New Issue
Block a user