cpw.qulogic.msn: cc1fdbd7: A small edit to purple_str_to_time that ...
qulogic at pidgin.im
qulogic at pidgin.im
Sat Jun 7 04:12:48 EDT 2008
-----------------------------------------------------------------
Revision: cc1fdbd7d5ce3915a5d7ad6920066f5951a29e23
Ancestor: 738e1d83d6a690135e101c9612aee628c1b65601
Author: qulogic at pidgin.im
Date: 2008-06-07T04:32:25
Branch: im.pidgin.cpw.qulogic.msn
URL: http://d.pidgin.im/viewmtn/revision/info/cc1fdbd7d5ce3915a5d7ad6920066f5951a29e23
Modified files:
libpurple/util.c
ChangeLog:
A small edit to purple_str_to_time that allows a 'Z' (UTC) TZ offset.
References #4875.
-------------- next part --------------
============================================================
--- libpurple/util.c 771fe71d7e19e96f83034f3bf88ec80656113978
+++ libpurple/util.c 852ffed93f237b177f8f88ce0b49aa6389fda2cd
@@ -832,6 +832,11 @@ purple_str_to_time(const char *timestamp
if (offset_positive)
tzoff *= -1;
}
+ else if ((*c == 'Z') && (c = c + 1))
+ {
+ /* 'Z' = Zulu = UTC */
+ tzoff = 0;
+ }
else if (utc)
{
static struct tm tmptm;
More information about the Commits
mailing list