Skip to content

Commit

Permalink
Fixed missing '+' sign printing for time zones.
Browse files Browse the repository at this point in the history
  • Loading branch information
sagotch committed Mar 3, 2015
1 parent af20539 commit 20f8382
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ISO8601.ml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ module Permissive = struct
match tz with
| None -> (t, "")
| Some 0. -> (t, "Z")
| Some x -> (t -. x, Format.sprintf "%2.0f:%2.0f"
| Some x -> (t -. x, Format.sprintf "%+2.0f:%2.0f"
(x /. 3600.)
(abs_float (x /. 60.))) in
(Unix.gmtime t, tz)
Expand Down

0 comments on commit 20f8382

Please sign in to comment.