summaryrefslogtreecommitdiff
path: root/libpurple/util.c
diff options
context:
space:
mode:
authorRichard Laager <rlaager@pidgin.im>2013-06-24 22:25:26 -0500
committerRichard Laager <rlaager@pidgin.im>2013-06-24 22:25:26 -0500
commit3cad4ce5033c1aef259ab9dede11604b39fc3525 (patch)
tree7389b47455b7386d78f89fde275762fbec83f7eb /libpurple/util.c
parentf0bdbec98de1c8c54ca126849da871c751b45f8d (diff)
downloadpidgin-3cad4ce5033c1aef259ab9dede11604b39fc3525.tar.gz
Fix purple_str_to_time()'s tz_off sign handling
This was introduced with the near-rewrite of this function in the patch from #13131 (hg commit 6a74f42c8c04). It presumably went unnoticed this long because most (all default?) locales don't use the timezone offset when outputting dates. Refs #13131 Fixes #15675
Diffstat (limited to 'libpurple/util.c')
-rw-r--r--libpurple/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpurple/util.c b/libpurple/util.c
index 12e05e0f77..ebfb7b3daf 100644
--- a/libpurple/util.c
+++ b/libpurple/util.c
@@ -807,7 +807,7 @@ purple_str_to_time(const char *timestamp, gboolean utc,
} while (*str >= '0' && *str <= '9');
}
- sign = (*str == '+') ? -1 : 1;
+ sign = (*str == '+') ? 1 : -1;
/* Process the timezone */
if (*str == '+' || *str == '-') {