From 20f83825a45057bb9c5fd6189ac6e98b3529eb5d Mon Sep 17 00:00:00 2001 From: Julien Sagot Date: Tue, 3 Mar 2015 11:51:40 +0100 Subject: [PATCH] Fixed missing '+' sign printing for time zones. --- src/ISO8601.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ISO8601.ml b/src/ISO8601.ml index ea4dfc6..7744ba0 100644 --- a/src/ISO8601.ml +++ b/src/ISO8601.ml @@ -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)