changeset 23512:b3890180aa2e

A small edit to purple_str_to_time that allows a 'Z' (UTC) TZ offset. References #4875.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sat, 07 Jun 2008 04:32:25 +0000
parents f1345f4338e3
children 1b98e2090a71
files libpurple/util.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;