From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,5e226566bdc424a0,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-08-13 14:26:20 PST Path: gmd.de!xlink.net!howland.reston.ans.net!sol.ctr.columbia.edu!news.kei.com!ub!dsinc!dsinc!not-for-mail From: syd@dsi.com (Syd Weinstein) Newsgroups: comp.unix.osf.osf1 Subject: Is alpha the only OSF/1 broken for this? Date: 13 Aug 1993 17:19:10 -0400 Organization: Datacomp Systems, Inc., Huntingdon Valley, PA Message-ID: <24h0ge$dhv@dsinc.dsi.com> Reply-To: syd@DSI.COM NNTP-Posting-Host: dsinc.dsi.com I've come across a problem with DEC's alpha OSF/1 using the following simple test program: #include #include main() { time_t t; struct tm *tm; #ifdef DO_TZSET tzset(); #endif (void) time(&t); tm = localtime(&t); printf("tm->tm_gmtoff = %ld\n", (long)tm->tm_gmtoff/60); printf("tm->tm_zone = %s\n", tm->tm_zone); exit(0); } It should return the number of minutes off gmt, and the name of the TZ. Under DEC's OSF/1, I get the tz_zone fine, but the tm-gmtoff is garbage. -- ======================================================================== Sydney S. Weinstein, CDP, CCP Elm Coordinator - Current 2.4PL22 Datacomp Systems, Inc. Projected 3.0 Release: ??? ?,1994 syd@DSI.COM or dsinc!syd Voice: (215) 947-9900, FAX: (215) 938-0235