Patch-ID# 100520-02 Keywords: cron, die, daylight, savings, time Synopsis: SunOS 4.1.1;4.1.2: Cron dies when daylight savings time STARTS/STOPS Date: 27/Apr/92 SunOS release: 4.1.1 4.1.2 Topic: daylight savings time causes problems for cron BugId's fixed with this patch: 1031907 Architectures for which this patch is available: sun3 & sun4 (all) Patches which may conflict with this patch: n/a Note: 27-April-92 -02 --------------- Added 4.1.2 version for this patch. No code change. Obsoleted by: Problem Description: If there are cron events scheduled for the time that will disappear when daylight savings time starts, they will be scheduled for a time practically in future infinity. This is because timelocal() returns -1 if given a gmt that falls into the 'non-existant' time period. This value of -1 was being used as the 'next time' of the event. As far as time values go, it's either a very long time ago or some time far into the future. Note that 'at' will not allow you to schedule jobs during this time period. With this patch, jobs that would fall into this 'offset' period are scheduled `later', e.g. the daylight-savings-time offset is added to their event time. If the offset is one hour, for example, then one hour is added. If there are cron jobs scheduled for the hour following the 'offset' period, those jobs will also be run during the same hour. INSTALL: 1) Login as root 2) Kill cron: a) ps -aux | egrep cron b) note the process ID (pid) of cron c) kill -TERM 3) cp /usr/etc/cron /usr/etc/cron.FCS 4) cp `arch`/cron /usr/etc/cron 5) use "chmod" and "chown" commands to set file premissions of cron to: -rwxr-xr-x 1 root staff 32768 Oct 2 1991 /usr/etc/cron* 6) restart cron