On Tuesday 21 May 2002 06:09 pm, Oliver Elphick wrote: > On Tue, 2002-05-21 at 18:24, Lamar Owen wrote: > > In any case, this isn't just a Red Hat problem, as it's going to cause > > problems with the use of timestamps on ANY glibc 2.2.5 dist. That's more > > than Red Hat, by a large margin.
> I'm running glibc 2.2.5 on Debian and all regression tests pass OK (with > make check). I don't see any note in the glibc Debian changelog about > reversing an upstream change to mktime(). > I missed the first messages in this thread and I can't find them in the > archive. What should I be looking for to see if I have the problem you > have encountered or to see why I don't have it if I ought to have? Hmmm. Compile and run the attached program. If you get -1, it's the new behavior. It might be interesting to see the differences here..... -- Lamar Owen WGCR Internet Radio 1 Peter 4:11
#include <stdio.h> #include <time.h> int main(int argc, char *argv[]) { int failout; struct tm fails; fails.tm_sec = 0; fails.tm_min = 0; fails.tm_hour = 0; fails.tm_hour = 0; fails.tm_isdst = -1; fails.tm_year = 69; fails.tm_mon = 11; fails.tm_mday = 30; failout = mktime(&fails); printf("The system thinks 11/30/1969 is a timestamp of %d \n", failout); return 0; }
---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://archives.postgresql.org