Hi Richard,
please check the system clock first using SHOWCLOCK.
Here (for Germany) it looks
XEBHH2:showclock
SYSTEM TIME: WED, FEB 13, 2002, 10:33:22 AM
CURRENT TIME CORRECTION: 0 SECONDS
TIME ZONE: 1 HOURS 0 MINUTES EASTERN HEMISPHERE
because we use an off-set of Greenwich Mean Time what is recommended.
On Systemlevel we have set the variable TZ which is also used with Samba to
XEBHH2:showvar tz
TZ = MEZ-1MESZ
To change from Wintertime to Summertime and back we use two jobs:
XEBHH2: print wintimej.xesmjob
!JOB WINTIMEJ,MANAGER.SYS;HIPRI;OUTCLASS=,1
!
!COMMENT Set System Clock to Winter Time.
!COMMENT That means: alter TIMEZONE to E1:00
!
!SETCLOCK TIMEZONE=E1:00
!EOJ
XEBHH2:print sumtimej.xesmjob
!JOB SUMTIMEJ,MANAGER.SYS;HIPRI;OUTCLASS=,1
!
!COMMENT Set System Clock to Summer Time or Daylight Savings Time.
!COMMENT That means: alter TIMEZONE to E2:00
!
!SETCLOCK TIMEZONE=E2:00
!EOJ
So, we have the H/W clock set to GMT (during reboot, and never changed), and use a S/W clock offset of one hour, using the Timezone MEZ-1MESZ out of
the file you already named.
Summertime and Wintertime adptions are made by changing the System Clock TimeZone - not by changing the H/W clock.
For all Posix Utilities we use the TZ variable.
This works fine!
Best regards, Andreas Schmidt, CSC, Germany
Richard Barker <[log in to unmask]>@RAVEN.UTC.EDU> on 12/02/2002
15:07:53
Please respond to Richard Barker <[log in to unmask]>
Sent by: HP-3000 Systems Discussion <[log in to unmask]>
To: [log in to unmask]
cc:
Subject: [HP3000-L] TZ, clock, Samba, malarkey
Hi
I'm sure this one must have come up before, so excuse my stupidity. I've
been searching the web for some definitive explanation for the SETCLOCK,
TZ,
Samba time settings and can't find one.
<snipped>
Could anyone please point me to a simple explanation of how do I set the TZ
and Samba time to CET (Central European Time). Why is that so bloody
difficult.
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|