Path: utzoo!attcan!uunet!auspex!guy From: guy@auspex.UUCP (Guy Harris) Newsgroups: comp.unix.questions Subject: Re: cron and DST Message-ID: <406@auspex.UUCP> Date: 5 Nov 88 21:08:30 GMT References: <6896@chinet.chi.il.us> Reply-To: guy@auspex.UUCP (Guy Harris) Distribution: na Organization: Auspex Systems, Santa Clara Lines: 17 >Our 3B2's running sysVr3.1 ran all the crontab entries twice after >the change from DST. I kind of expected that for the entries between >1 and 2 AM, but the subsequent entries also ran twice. Is this >normal? No. It's caused by "cron" not understanding how to deal with converting local time <-> UNIX time and, in particular, how to deal with DST. I don't remember the details; it's fixed in SunOS 4.0 (which has a "cron" based on the S5R3.1 one) by having "cron" use "timelocal" to do the conversions rather than trying to do them itself. Unfortunately, S5R3.1 doesn't have "timelocal" (converts a "struct tm" into a "time_t"); it's from the Arthur Olson time zone code, which SunOS 4.0 uses. S5R4 will have "mktime", assuming it supports ANSI C, which pretty much does the same thing.