Skip to content

Commit ecef9b7

Browse files
authored
Fix pretty-printing of timezones (#2379)
Fixes #2368
1 parent 4561a41 commit ecef9b7

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

dhall/src/Dhall/Pretty/Internal.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1354,7 +1354,7 @@ prettyPrinters characterSet =
13541354
where
13551355
sign = if 0 <= minutes then "+" else "-"
13561356

1357-
(_HH, _MM) = minutes `divMod` 60
1357+
(_HH, _MM) = abs minutes `divMod` 60
13581358
prettyPrimitiveExpression List =
13591359
builtin "List"
13601360
prettyPrimitiveExpression ListBuild =
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
04:00:00-04:00
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
04:00:00-04:00

0 commit comments

Comments
 (0)