Solaris / OpenSolarisThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Solaris 10 (x86) and Windows XP Pro SP2
Posts: 596
Rep:
Timzone Issues...Local Time versus UTC time?
Hello all,
Please help with a timezone issue.
Ok, my timezone is set to the following (EET) Eastern European Time) and Im located in Hungary.
Now, when I do a DATE -U command, it shows a GMT offset of +3. This is incorrect, because in the Summer time, its suppose to have an offset of +2.
I checked my etc/TIMEZONE directory and its currently set to
TZ= EET (since installation)
The offset SHOULD be +2 instead +3....in the Summer time.
How can I set this correctly? Please explain the details.
So in other words, I want to have Hungarian Local Time, with a GMT or UTC offset of +2...And +1 in the Winter time.
And how can I set this correctly when Daylight Savings comes again in the Fall (which should be +1) ????
Distribution: Ubuntu, Slackware, Gentoo, Fedora, Red Hat, Puppy Linux
Posts: 370
Rep:
What distribution and version of Linux are you using? There have been changes in timezone daylight savings/standard time dates which were incorporated in several updates to the Linux time tables. If you have not kept your Linux up-to-date then you may have discrepancies in the times. If you have not updated your Linux you should do so to incorporate the latest time tables.
Here is a wiki on how to fix time and timezones in Linux which I found using the terms "linux timezone" in Google.
Distribution: Solaris 10 (x86) and Windows XP Pro SP2
Posts: 596
Original Poster
Rep:
Its not Linux...Its Solaris 10 08/07 release. Thats why I posted this thread in the Solaris forum in the first place.
Also, is there any way I can issue a command to were I can set the UTC offset to +2 ??
All I want to do is to set the local time being Budapest, Hungary (Eastern Europe) and when issuing the date -u command, I want the UTC offset to be +2.
Distribution: Solaris 10 (x86) and Windows XP Pro SP2
Posts: 596
Original Poster
Rep:
I think I know whats going on here.
My TZ was set to EET which is like Romania (a bit more East of Hungary)...So Hungary would be set as this below and please correct me if Im wrong.
etc/TIMEZONE TZ=CET
CMASK=022
Or....TZ=CEST
And this is what all I had to do??
Please confirm.
Now, will this creat a UTC offset of +2 in the summer time or +1?
Distribution: Solaris 10 (x86) and Windows XP Pro SP2
Posts: 596
Original Poster
Rep:
Thanks, I will give a try.
Now, so this also means that whrn the next DST changes take effecr which would be Fall, would this automatically convert UTC offset to +1 ???
Yes, this is supposed to do.
Maybe you have to install the latest DST patch in order to use the latest changes for various countries (note the link above is for the sparc patch)
Distribution: Solaris 10 (x86) and Windows XP Pro SP2
Posts: 596
Original Poster
Rep:
One problem though...
I am dual-booting with Windows and once I change the time doing the DATE HHMM.SS under Solaris, like for example 18:00 CEST, then on Windows, the clock is displayed as 19:00...
And when I change the clock under Windows to 18:00, then under Solaris, its goes behind 17:00...
Distribution: Solaris 10 (x86) and Windows XP Pro SP2
Posts: 596
Original Poster
Rep:
Hi...Ok, I got it working...
The issue was...Well...Its my fault for not mentioning that Im dual-booting with Windows first of all....Sorry...
OK, I did the rtc -z Europe/Budapest command in order for the RTC to realize the INTERNAL clock so Windows and Solaris wont have to play a tug of war...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.