We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 70ac003 + b08cf1a commit 39816bdCopy full SHA for 39816bd
src/Data/Formatter/DateTime.purs
@@ -209,7 +209,7 @@ formatF cb dt@(DT.DateTime d t) = case _ of
209
DayOfWeek a →
210
show (fromEnum $ D.weekday d) <> cb a
211
Hours24 a →
212
- show (fromEnum $ T.hour t) <> cb a
+ padSingleDigit (fromEnum $ T.hour t) <> cb a
213
Hours12 a →
214
let fix12 h = if h == 0 then 12 else h
215
in (padSingleDigit $ fix12 $ (fromEnum $ T.hour t) `mod` 12) <> cb a
0 commit comments