Operating System - HP-UX
1748169 Members
4144 Online
108758 Solutions
New Discussion юеВ

Re: Time is incorrect on HPUX 11.11 localtime culprit

 
Gary_O
Frequent Advisor

Time is incorrect on HPUX 11.11 localtime culprit

Hey guys,
This one has been bugging me for months now.
I accidently set my date to 03/06/17 10:50:33
I eventually changed it back to the correct date.

The problem is all of my programs running on this machine are returning a time/localtime of
03/06/17 10:50:33

I even tried rebooting the machine, hoping it would be corrected.

The source was built on an 11.00 machine.
Not sure why source built on an 11.00 machine would not work correct on 11.11 machine.

I dont get it.
2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: Time is incorrect on HPUX 11.11 localtime culprit

Shalom,

Many programs such as Oracle can not deal with time roll backs. They keep internal time/date stamps that go bugger when time is rolled back.

Source built on an 11.00 system may have issues on an 11.11 system depending on what system calls are being used. The only way to really dive into it, is to look at the source.

Probably better to try building your program for 11.11 on an 11.11 machine. Better QA/Test environment.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Dennis Handly
Acclaimed Contributor

Re: Time is incorrect on HPUX 11.11 localtime culprit

>all of my programs running on this machine are returning a time/localtime of
03/06/17 10:50:33

What is the time_t value being formatted?

>Not sure why source built on an 11.00 machine would not work correct on 11.11 machine.

It should work as long as it is not kernel intrusive.