LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 04-04-2006, 12:18 PM   #16
as400
Member
 
Registered: Apr 2004
Location: USA
Distribution: Solaris 10 (x86) and Windows XP Pro SP2
Posts: 596

Original Poster
Rep: Reputation: 30

Hello,

Have you read my last outpost of the command you told me to do? We need to keep this flowing please. I would appreciate this.

My applications need to be timestamped in this case as UTC..No matter what.

Thanks
 
Old 04-04-2006, 12:21 PM   #17
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
There is nothing wrong with your date output.

Obviously, after telling the internal clock was no more set on local time but in universal time, a shift in what the date command was showing was observed, as the internal clock value hadn't change yet.

This was nothing but expected.

You rightly set the time to the correct value, using a wall clock, and now its okay.
 
Old 04-04-2006, 12:22 PM   #18
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
And thank you for your patience.
 
Old 04-04-2006, 12:28 PM   #19
as400
Member
 
Registered: Apr 2004
Location: USA
Distribution: Solaris 10 (x86) and Windows XP Pro SP2
Posts: 596

Original Poster
Rep: Reputation: 30
Hold hold on.. So how come my clock does not show a 7 hour ahead time?? I thought the idea was to use UTC time??? So Im lost now...Very lost..So is my clock on UTC time or not? So we did all this for nothing? I still really want to the OS time in UTC for both. So your saying it cannot be done?

After reading your last post a dozen times...I am still lost.

Ok, Your saying that even my clock display in the CDE panel shows LOCAL TIME, my INTERNAL CLOCK is set to UTC?

How can I find that out? I dont understand

Ok, in both Windows and Solaris it still shows LOCAL TIME. But your saying my Internal clock should be UTC..right? I dont undertand. So why are my clock and time are still reading the time as LOCAL TIME?

But now, since I went back and did the whole DATE COMMAND thing, do I have to do those instructions again that you gave me?

Last edited by as400; 04-04-2006 at 12:35 PM.
 
Old 04-04-2006, 12:53 PM   #20
as400
Member
 
Registered: Apr 2004
Location: USA
Distribution: Solaris 10 (x86) and Windows XP Pro SP2
Posts: 596

Original Poster
Rep: Reputation: 30
Please dont go yet. I still have a question that needs to be followed up here.

I dont think we have done this the right way. Because after telling Solaris to use UTC doing that UTC command that you posted in your instructions, the time showed MINUS of 7 hours...instead of + 7 hours from my local time (09:15PDT - 02:15)

So would this mean that the INTERNAL clock would be MINUS 7 HOURS or PLUS 7 HOURS from my local time?

Please explain. Im sorry, but all of my apps need to be in UTC time and to solave the DUAL-BOOT OS time issues during the DST time changes...

And also, is there actually a way to tell if my INTERNAL CLOCK uses UTC time? How can I find out in both OSes?

Please follow up..

Thanks

Last edited by as400; 04-04-2006 at 12:57 PM.
 
Old 04-04-2006, 02:38 PM   #21
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Your internal clock is running in UTC, you can stop the boot process and look at the BIOS interface to verify it.

Both Windows and Solaris knows the internal clock is running in UTC.

The displayed clock depends on the current timezone, which is an environment variable under Solaris, thus for example "TZ=GMT date" and "TZ=MET date" shows different dates.

Your files timestamps are correct, and are internally stored using UTC (they are always stored that way), so "TZ=GMT ls -l" and "TZ=PRC ls -l" will give different timestamps for the same file.
 
Old 04-04-2006, 03:07 PM   #22
as400
Member
 
Registered: Apr 2004
Location: USA
Distribution: Solaris 10 (x86) and Windows XP Pro SP2
Posts: 596

Original Poster
Rep: Reputation: 30
Ok..I checked in the BIOS and it reads as 20:09 UTC...So my local time is 13:09 and the BIOS reads 20:09...So I got it...Its OK..

But, is there any way I can set the DISPLAYED time in both Windows and Solaris desktops to display time in UTC and have the INTERNAL CLOCK read UTC at the same time? Will setting the DISPLAYED time as we see in our desktops as UTC and plus having the INTERNAL CLOCK set as UTC, will that cause the time to behave incorrectly during DST Time? Or, should I leave ONLY the INTERNAL CLOCK as UTC and keep the displayed time as LOCAL???

So overall, what would happen during the next DST change assuming that I have BOTH the internal clock and the displayed time (on my desktops) set as UTC? Will I have conflicts even then or not?

Or, like I said, should I leave it the way it is leaving ONLY the INTERNAL CLOCK as UTC?

And if it will NOT have any conflicts, then please explain on how to set the DISPLAYED time as being UTC...I would appreciate it.

Also you quoted saying this below:
Quote:
Your files timestamps are correct, and are internally stored using UTC (they are always stored that way)
So how come when I do a command for all my error messages logs, then how come there timestamped in LOCAL TIME?

Thanks

Last edited by as400; 04-04-2006 at 03:25 PM.
 
Old 04-04-2006, 03:23 PM   #23
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by as400
But I do not want my files to be timestamped in different dates and time...I want all apps to be timestamped in UTC. Period.
And they are.
Quote:
Now i am still confused about why my displayed time settings are set in local time on both OS desktop panels?
I answered that, your TZ is set to pacific time, change the file /etc/default/init to contain "TZ=UTC" and reboot if you want your machine to show UTC time by default.
Quote:
Also, after telling Solaris to use UTC in the command you gave in the instructions, why did the time shifted from 09:15PDT to 02:15? Thats still MINUS 7 HOURS which is not correct. Its suppose to be PLUS 7 hours ahead from PDT.
You suppose wrong.
Quote:
For example, if I did a command of all my error log meassages, that would still be in local time..right?? Well, I do not want that. I want all my displayed time, my logs, my apps, my programs to be DISPlAYED in UTC and in the same time setting the INTERNAL CLOCK in UTC as well for both OSses.
Okay, I think I just answered that.
Quote:
Also, if we did it the right way according to the instructions (which I did), In Solaris, how would I know if the INTERNAL clock is set to UTC WITHOUT booting into the BIOS? I mean, I can check there...but is there any way to check inside the operating systems itself?
Code:
cat /etc/rtc_config
will tell you the real time clock configuration.
 
Old 04-04-2006, 03:32 PM   #24
as400
Member
 
Registered: Apr 2004
Location: USA
Distribution: Solaris 10 (x86) and Windows XP Pro SP2
Posts: 596

Original Poster
Rep: Reputation: 30
I guess you beat me to it....I ALREADY GOT THAT PART all figured out finally...

Did you read my last very last post which was:

Ok..I checked in the BIOS and it reads as 20:09 UTC...So my local time is 13:09 and the BIOS reads 20:09...So I got it...Its OK..

Code:
zone_info=UTC
zone_lag=0

Thanks

Last edited by as400; 04-04-2006 at 03:46 PM.
 
Old 04-04-2006, 03:45 PM   #25
as400
Member
 
Registered: Apr 2004
Location: USA
Distribution: Solaris 10 (x86) and Windows XP Pro SP2
Posts: 596

Original Poster
Rep: Reputation: 30
So overall, what would happen during the next DST change assuming that I have BOTH the internal clock and the displayed time (on my desktops) set as UTC? Will I have conflicts even then or not?

Or, should I leave it the way it is leaving ONLY the INTERNAL CLOCK as UTC?

And if it will NOT have any conflicts, then please explain on how to set the DISPLAYED time as being UTC...I would appreciate it.

Thanks
 
Old 04-04-2006, 04:00 PM   #26
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
There is never a DST change in UTC, so there is no risk of conflict.

I already explained how to have the displayed time in UTC, please read again my posts.
hint: TZ variable.
 
Old 04-04-2006, 07:44 PM   #27
as400
Member
 
Registered: Apr 2004
Location: USA
Distribution: Solaris 10 (x86) and Windows XP Pro SP2
Posts: 596

Original Poster
Rep: Reputation: 30
Ok --- I got it..So whenever I decide to change the ACTUAL DISPLAY TIME AS UTC on the desktop..I would just edit the "TZ" to "TZ=UTC" where it says TZ=Pacific down below here:

Code:
#
# Copyright 1992, 1999-2002 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
#ident	"@(#)init.dfl	1.7	02/12/03 SMI"
#
# This file is /etc/default/init.  /etc/TIMEZONE is a symlink to this file.
# This file looks like a shell script, but it is not.  To maintain
# compatibility with old versions of /etc/TIMEZONE, some shell constructs
# (i.e., export commands) are allowed in this file, but are ignored.
#
# Lines of this file should be of the form VAR=value, where VAR is one of
# TZ, LANG, CMASK, or any of the LC_* environment variables.  value may
# be enclosed in double quotes (") or single quotes (').
#
TZ=US/Pacific
CMASK=022
LANG=C
Quote:
There is never a DST change in UTC, so there is no risk of conflict.
Then a quick last question regarding your quote above and I'll wrap this up...

Then why does the instrustions say to CHECK the "ADJUST FOR DST AUTOMATICALLY" in Windows then?

Also...should I leave it the way it is leaving ONLY the INTERNAL CLOCK as UTC? Or, I CAN have also my desktop clocks set as UTC too?

Thanks in advanced.

Last edited by as400; 04-04-2006 at 07:53 PM.
 
Old 04-04-2006, 11:16 PM   #28
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by as400
Ok --- I got it..So whenever I decide to change the ACTUAL DISPLAY TIME AS UTC on the desktop..I would just edit the "TZ" to "TZ=UTC" where it says TZ=Pacific down below here:
correct
Quote:
Then a quick last question regarding your quote above and I'll wrap this up...

Then why does the instrustions say to CHECK the "ADJUST FOR DST AUTOMATICALLY" in Windows then?
Please ask that to a windows forum.
Quote:
Also...should I leave it the way it is leaving ONLY the INTERNAL CLOCK as UTC? Or, I CAN have also my desktop clocks set as UTC too?
It's up to you.
 
Old 04-05-2006, 09:48 AM   #29
as400
Member
 
Registered: Apr 2004
Location: USA
Distribution: Solaris 10 (x86) and Windows XP Pro SP2
Posts: 596

Original Poster
Rep: Reputation: 30
You said that UTC time is constant...were it DOES NOT adjust during DST. So why do I need to CHECK were it says "adjust to dst time automatically" in the date/time settings in the control panel.

From the instructions:
Quote:
In the control panel with Day&Time settings, check the "automatically adjust" check box.
So is the next DST time channge occurs, Windows will probably move the display time back 1 hour and Solaris will stay the same and all will be different again.

Last edited by as400; 04-05-2006 at 09:55 AM.
 
Old 04-05-2006, 12:12 PM   #30
as400
Member
 
Registered: Apr 2004
Location: USA
Distribution: Solaris 10 (x86) and Windows XP Pro SP2
Posts: 596

Original Poster
Rep: Reputation: 30
I need Solaris to set the DISPLAYED time as UTC and Windows LOCAL...I've already set the INTERNAL CLOCK as UTC...thats fine...But now, Im asking that what if I set the displayed clock (on desktop) as LOCAL in Windows, and the clock panel in Solaris to UTC keeping the INTERNAL CLOCK as UTC??

Will this cause any conflicts? Or, both OSses need to be synchronized as LOCAL?

And I still dont understand on why I have to set to adjust DST time automatically in Windows if UTC does not adjust.

Last edited by as400; 04-05-2006 at 12:41 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
System clock correct, hardware clock wrong karlovac Linux - General 5 01-16-2009 07:19 PM
the amazing, incredible, changing clock! BrianNJ Linux - Software 7 07-03-2006 10:17 PM
Linux OS Clock/Timezone shows the clock off by 6 hours between OS's JBailey742 Linux - Software 9 04-06-2006 11:40 PM
Preventing Debian from changing time on hardware clock reddazz Debian 6 04-12-2005 07:45 PM
Changing Cpu clock/frequency on fly carl0ski Linux - Software 0 11-14-2004 06:00 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 04:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration