On Mon, Aug 18, 2008 at 10:09:42PM -0700, Alan Irwin wrote: > On 2008-08-18 21:32-0700 Alan W. Irwin wrote: > > > On 2008-08-18 20:17-0700 Jerry wrote: > >> > >> As I see it, the first thing that has to be reckoned with is why x29c.c is > >> mislabeling the axis on OS X. I've pasted a screen shot as a PDF but I > >> suppose it won't survive the list mail process. > > > > No, it got attached fine, but its first label is 1970-01-14 which is not at > > all in agreement with the C result I get here whose first label is > > 2005-12-14 (then every two weeks after that in agreement with the "Hours of > > television watched in Dec 2005 / Jan 2006" title). > > > > Hazen, does your 3rd page x29 C result on Mac OS X agree with Jerry's or > > mine? > > Jerry, see also http://plplot.sourceforge.net/examples-data/demo29/x29.03.png > which IIRC was generated on a Debian sarge box by Hazen (not his Mac OS X > system) and agrees with the result I get on my Debian lenny box.
There are really only 2 options here. 1) mktime doesn't work on Mac OS X. 2) Mac OS X does not honour the TZ system variable correctly. Given that C example 29 used to work, I suspect mktime is OK. Does it make any difference if you set TZ to be "UTC" rather than ""? Change setenv("TZ", "", 1); to setenv("TZ", "UTC", 1); Perhaps it doesn't like the blank TZ string? Andrew ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel