# HG changeset patch # User Elliott Sales de Andrade # Date 1212813145 0 # Node ID b3890180aa2e85da9e1225c73b0621bc4a343cb6 # Parent f1345f4338e31c6a9a28abcdcb549d893421a740 A small edit to purple_str_to_time that allows a 'Z' (UTC) TZ offset. References #4875. diff -r f1345f4338e3 -r b3890180aa2e libpurple/util.c --- a/libpurple/util.c Sat Jun 07 04:05:25 2008 +0000 +++ b/libpurple/util.c Sat Jun 07 04:32:25 2008 +0000 @@ -832,6 +832,11 @@ if (offset_positive) tzoff *= -1; } + else if ((*c == 'Z') && (c = c + 1)) + { + /* 'Z' = Zulu = UTC */ + tzoff = 0; + } else if (utc) { static struct tm tmptm;