Mercurial > pidgin
comparison libpurple/util.c @ 16004:b4593c886933
fix our string-to-time function, and add a couple tests for it
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Sat, 07 Apr 2007 04:43:50 +0000 |
parents | 4e44a9eaceec |
children | 198983d7e546 |
comparison
equal
deleted
inserted
replaced
16003:7b8b16670140 | 16004:b4593c886933 |
---|---|
792 * if we know the UTC offset already. */ | 792 * if we know the UTC offset already. */ |
793 t->tm_isdst = 0; | 793 t->tm_isdst = 0; |
794 } | 794 } |
795 else if (utc) | 795 else if (utc) |
796 { | 796 { |
797 t->tm_isdst = 0; | 797 t->tm_isdst = -1; |
798 } | 798 } |
799 | 799 |
800 if (rest != NULL && *c != '\0') | 800 if (rest != NULL && *c != '\0') |
801 { | 801 { |
802 if (*c == ' ') | 802 if (*c == ' ') |