diff options
author | Richard Laager <rlaager@pidgin.im> | 2013-06-24 22:25:26 -0500 |
---|---|---|
committer | Richard Laager <rlaager@pidgin.im> | 2013-06-24 22:25:26 -0500 |
commit | 3cad4ce5033c1aef259ab9dede11604b39fc3525 (patch) | |
tree | 7389b47455b7386d78f89fde275762fbec83f7eb /libpurple/util.c | |
parent | f0bdbec98de1c8c54ca126849da871c751b45f8d (diff) | |
download | pidgin-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.c | 2 |
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 == '-') { |