Time

Alain Bonnefoy <alain.bonnefoy@icbt.com> wrote in message
news:3AF0ECD1.916C13F7@icbt.com

Igor Kovalenko a écrit :

Phil Olynyk wrote:

Igor Kovalenko wrote:

Phil Olynyk wrote:

me wrote:

“Randy Aeberhardt” <> raeberhardt@tantalus-systems.com> > wrote in
message
news:9ck68q$45d$> 1@nntp.qnx.com> …
Sorry, I guess I wasn’t clear enough. I was hoping that there
was a
workaround to the time problem itself. Not correcting for its
effects. Is
there a way to trick the system into setting the correct time
by adding a
command into the .profile (or some similar file?).

export TZ=getconf CS_TIMEZONE

And where do we tell it that our RTC is set for UTC instead of
local time?

rtc -s hw

Igor, do you mean : rtc -l hw ??? And I guess put it in rc.local to
reset the

I mean -s. That means ‘update time in NVRAM’. The rtc -l actually reads
time from NVRAM and it also assumes local time there. So if your system
has date & local time set properly and you want to put UTC time into
NVRAM based on that, you do ‘rtc -s hw’.

  • igor

As we are on the subject, do you know to get the date through TCP/IP (from
a NT server)

natively - if fs-cifs does not have smb time, then SAMBA smbclient

otherwise - ntpd, xntpd, etc… but then you also need one on NT

“Michael J. Ferrador” a écrit :

Alain Bonnefoy <> alain.bonnefoy@icbt.com> > wrote in message
news:> 3AF0ECD1.916C13F7@icbt.com> …
Igor Kovalenko a écrit :

Phil Olynyk wrote:

Igor Kovalenko wrote:

Phil Olynyk wrote:

me wrote:

“Randy Aeberhardt” <> raeberhardt@tantalus-systems.com> > wrote in
message
news:9ck68q$45d$> 1@nntp.qnx.com> …
Sorry, I guess I wasn’t clear enough. I was hoping that there
was a
workaround to the time problem itself. Not correcting for its
effects. Is
there a way to trick the system into setting the correct time
by adding a
command into the .profile (or some similar file?).

export TZ=getconf CS_TIMEZONE

And where do we tell it that our RTC is set for UTC instead of
local time?

rtc -s hw

Igor, do you mean : rtc -l hw ??? And I guess put it in rc.local to
reset the

I mean -s. That means ‘update time in NVRAM’. The rtc -l actually reads
time from NVRAM and it also assumes local time there. So if your system
has date & local time set properly and you want to put UTC time into
NVRAM based on that, you do ‘rtc -s hw’.

  • igor

As we are on the subject, do you know to get the date through TCP/IP (from
a NT server)

natively - if fs-cifs does not have smb time, then SAMBA smbclient

otherwise - ntpd, xntpd, etc… but then you also need one on NT

maybe but I saw the smclient doc and I didn’t see anything on the subject.

I suppose I have to connect to a Nt service but which one?

Thanks,
Alain.