diff --git a/snikket/Date.hx b/snikket/Date.hx index 51aeff4..25a3466 100644 --- a/snikket/Date.hx +++ b/snikket/Date.hx @@ -7,7 +7,7 @@ class Date { var tzMinute = Std.int(Math.abs(d.getTimezoneOffset())%60); return str + (tzHour < 0 ? "+" : "-") + - StringTools.lpad(Std.string(tzHour), "0", 2) + ":" + + StringTools.lpad(Std.string(Math.abs(tzHour)), "0", 2) + ":" + StringTools.lpad(Std.string(tzMinute), "0", 2); } }