Mercurial > pidgin
comparison src/protocols/jabber/jabber.c @ 3161:1fde0667976e
[gaim-migrate @ 3177]
Now EVERYBODY can compile! Whee!
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Sun, 21 Apr 2002 22:08:41 +0000 |
parents | 09e342b27eff |
children | fdd20785e1e1 |
comparison
equal
deleted
inserted
replaced
3160:09e342b27eff | 3161:1fde0667976e |
---|---|
736 struct tm t; | 736 struct tm t; |
737 if(sscanf(timestamp,"%04d%02d%02dT%02d:%02d:%02d", &t.tm_year, &t.tm_mon, &t.tm_mday, &t.tm_hour, &t.tm_min, &t.tm_sec)) | 737 if(sscanf(timestamp,"%04d%02d%02dT%02d:%02d:%02d", &t.tm_year, &t.tm_mon, &t.tm_mday, &t.tm_hour, &t.tm_min, &t.tm_sec)) |
738 { | 738 { |
739 t.tm_year -= 1900; | 739 t.tm_year -= 1900; |
740 t.tm_mon -= 1; | 740 t.tm_mon -= 1; |
741 return mktime(&t) - t.tm_gmtoff; | 741 return mktime(&t) + |
742 #ifdef HAVE_TM_GMTOFF | |
743 t.tm_gmtoff | |
744 #else | |
745 # ifdef HAVE_TIMEZONE | |
746 timezone | |
747 # else | |
748 0 | |
749 # endif | |
750 #endif | |
751 ; | |
742 } | 752 } |
743 return 0; | 753 return 0; |
744 } | 754 } |
745 | 755 |
746 static void jabber_handlemessage(gjconn gjc, jpacket p) | 756 static void jabber_handlemessage(gjconn gjc, jpacket p) |