FreeBSD 6.0 cron is running on GMT
John-Mark Gurney
gurney_j at resnet.uoregon.edu
Sun Nov 27 05:39:05 GMT 2005
Brett Glass wrote this message on Sat, Nov 26, 2005 at 22:27 -0700:
> At 09:14 PM 11/26/2005, Peter Jeremy wrote:
>
> >On Sat, 2005-Nov-26 15:07:26 -0700, Brett Glass wrote:
> >>By the way, the "date" command does report the correct time. It's cron
> >>that seems to be getting the time wrong.
> >
> >You haven't accidently created a line that looks like 'TZ=' in the
> >crontab have you?
>
> Nope.
>
> >Is this affecting all users or just one?
>
> All.
>
> I am wondering if I shouldn't just redo everything in the system that
> has to do with time zones and time keeping (deleting files and re-creating
> them if need be), reboot, and see what happens. I've never seen a good
> explanation of all of the sysctl variables, environment variables, files,
> etc. that control it, especially since (as I understand it) the responsibility
> has been shifted from the kernel to libraries. Is there a summary out there?
/etc/localtime contains the timezone that is the default when TZ isn't
set... if /etc/wall_cmos_clock exists then the RTC of the machine
matches that of /etc/localtime, if it doesn't exist, the RTC is in
GMT... adjkerntz(8) contains pointers to these files...
as far as I know there are no sysctl's that deal with timezone...
--
John-Mark Gurney Voice: +1 415 225 5579
"All that I will do, has been done, All that I have, has not."
More information about the freebsd-stable
mailing list