Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Stephen Scott found IDS 10.00.FC6 on HP-UX returned a current time an hour ahead of the OS date despite USEOSTIME 0. Everett Mills suggested USEOSTIME 1, checking TZ and the HP DST patch; Ralph Gentry suggested checking the oninit owner's timezone. Stephen found that IDS 10 uses /etc/default/tz, which said EST while TZ was CST. Fixing the file corrected the time. Solved.
Auto-generated by Claude from the posts below — may be imperfect; read the full thread.
We have the following:
IBM Informix Dynamic Server Version 10.00.FC6
HP-UX om4db1 B.11.11 U 9000/800 4126011100 unlimited-user license
We started the database with
USEOSTIME 0
When you do a date on the system it says the time is
Tue Dec 4 15:09:58 CST 2007
But if you do a
select first 1 current from systablesit returns
2007-12-04 16:09:58.000
Is there some unix setting I am missing or some informix time zone setting I'm
missing?
Stephen
> -----Original Message-----
> From: ids-bounces@iiug.org [mailto:ids-bounces@iiug.org] On Behalf Of
> STEPHEN SCOTT
> Sent: Tuesday, December 04, 2007 3:15 PM
> To: ids@iiug.org
> Subject: USEOSTIME issue [10590]
>
> We have the following:
> IBM Informix Dynamic Server Version 10.00.FC6
> HP-UX om4db1 B.11.11 U 9000/800 4126011100 unlimited-user license
>
> We started the database with
>
> USEOSTIME 0>
> When you do a date on the system it says the time is
>
> Tue Dec 4 15:09:58 CST 2007
>
> But if you do a
>
> select first 1 current from systables> it returns
>
> 2007-12-04 16:09:58.000
>
> Is there some unix setting I am missing or some informix time zone
setting
> I'm
> missing?
>
> Stephen
Try USEOSTIME 1, it's just as fast as USEOSTIME 0. Also, what does
echo $TZ tell you? Did you apply the HP DST patch (PHCO_34668)?
--EEM
>
>
>
************************************************************************
**
> *****
> Forum Note: Use "Reply" to post a response in the discussion forum.
↪ replying to Everett Mills
RALPH GENTRY — — source: IIUG Forums & Mailing Lists
Might want to login as the user who owns the oninit and see what timezone is
set. I had this problem when setting a server for the UK but the machine was
located in the US. Beieve there is also an environment variable that can or
needs to be set.
↪ replying to RALPH GENTRY
STEPHEN SCOTT — — source: IIUG Forums & Mailing Lists
To all:
The $TZ was correct but....
We found that Informix V10 uses a file on HP/UX
/etc/default/tz
The $TZ was set to CST but the /etc/default/tz was set to EST.
Informix v9.4 seemed to use the $TZ value but informix V10 uses the
/etc/default/tz file file.
Our unix admin changed the /etc/default/tz file and informix immediatly
changed the time returned in the sql. It also changed the timestamp in the
online.log file.
Thanks for the responses.
Stephen
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.