comparison libgaim/util.c @ 14998:fee45b614eb7

[gaim-migrate @ 17776] Properly handle conversions of UTC timestamps when they are across the DST boundary from now. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Sun, 19 Nov 2006 05:56:07 +0000
parents 0c80979077cf
children 9a69964d8c18
comparison
equal deleted inserted replaced
14997:33ac3c591b4a 14998:fee45b614eb7
787 tzoff = tzhrs*60*60 + tzmins*60; 787 tzoff = tzhrs*60*60 + tzmins*60;
788 if (offset_positive) 788 if (offset_positive)
789 tzoff *= -1; 789 tzoff *= -1;
790 /* We don't want the C library doing DST calculations 790 /* We don't want the C library doing DST calculations
791 * if we know the UTC offset already. */ 791 * if we know the UTC offset already. */
792 t->tm_isdst = 0;
793 }
794 else if (utc)
795 {
792 t->tm_isdst = 0; 796 t->tm_isdst = 0;
793 } 797 }
794 798
795 if (rest != NULL && *c != '\0') 799 if (rest != NULL && *c != '\0')
796 { 800 {