summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorFelix Krause <contact@flyx.org>2016-11-08 20:57:53 +0100
committerFelix Krause <contact@flyx.org>2016-11-08 20:57:53 +0100
commit9b2aaf0df62a7159861602ab4e0073d87d4be81d (patch)
tree866d6ec56bca1f607285aea0c743e9cc380729b9
parent86b58e83eac445943376af14cae2d9cdcf0bb5aa (diff)
downloadNim-9b2aaf0df62a7159861602ab4e0073d87d4be81d.tar.gz
Fixed timezone sign error
 * This was introduced in recent "cosmetic" fix. Not so cosmetic
   after all…
-rw-r--r--lib/pure/times.nim12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/pure/times.nim b/lib/pure/times.nim
index 1e869d301..4260179ed 100644
--- a/lib/pure/times.nim
+++ b/lib/pure/times.nim
@@ -824,21 +824,21 @@ proc formatToken(info: TimeInfo, token: string, buf: var string) =
     buf.add(fyear)
   of "z":
     let hours = abs(info.timezone) div secondsInHour
-    if info.timezone < 0: buf.add('-')
-    else: buf.add('+')
+    if info.timezone < 0: buf.add('+')
+    else: buf.add('-')
     buf.add($hours)
   of "zz":
     let hours = abs(info.timezone) div secondsInHour
-    if info.timezone < 0: buf.add('-')
-    else: buf.add('+')
+    if info.timezone < 0: buf.add('+')
+    else: buf.add('-')
     if hours < 10: buf.add('0')
     buf.add($hours)
   of "zzz":
     let
       hours = abs(info.timezone) div secondsInHour
       minutes = abs(info.timezone) mod 60
-    if info.timezone < 0: buf.add('-')
-    else: buf.add('+')
+    if info.timezone < 0: buf.add('+')
+    else: buf.add('-')
     if hours < 10: buf.add('0')
     buf.add($hours)
     buf.add(':')