- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Brazil timezone issue
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2005 04:55 AM
05-25-2005 04:55 AM
Brazil timezone issue
BEST3BEDT
0 0 15-21 2 2003 0 BEST3
0 0 18-24 10 2003 0 BEDT2
0 0 14-20 2 2004 0 BEST3
0 0 1-2 11 2004 2 BEDT2
0 0 20-21 2 2005 0 BEST3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2005 05:22 AM
05-25-2005 05:22 AM
Re: Brazil timezone issue
The best way around that is to set the time zone and enable ntp to get actual time from a time server.
Another way to go is to set your systsem time to Greenwich mean time, if the users won't object.
http://www.ntp.org
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2005 05:56 AM
05-25-2005 05:56 AM
Re: Brazil timezone issue
If I do a date -u I get the correct UTC time and we are using NTP. So I "beleive" that the time on the server is correct, however, it is displayed incorrectly because the timezone environment varialbe is set to daylight savings (BEDT). I am wondering why the timezone variable would have switched (without a reboot) and when the tztab config (above) is not configured to switch. Maybe I am confused about the tztab config?
Please advise, thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2005 07:05 PM
05-25-2005 07:05 PM
Re: Brazil timezone issue
Format of lines in /usr/lib/tztab is
minute hour day_of_the_month month_of_the_year year day_of_the_week tzname_offset
minute: 0-59
hour: 0-23
day_of_the_month: 1-31
month_of_the_year: 1-12
year: 1970-2038
day_of_the_week: 0-6 (0 is Sunday)
tzname: BEST
offset: 3 hours behind UTC
According to your tztab, last change happened on Sunday February 20 2005, when difference between UTC and your local time became 3 hours.
Please note that kernel always keep its internal time in UTC. TZ variable only affects programs such as date etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2005 12:08 AM
05-26-2005 12:08 AM
Re: Brazil timezone issue
The system is never in some timezone, it should always run in 'epoc': number of seconds sinds 00:00, 1st january 1970. It is only the representation (the `date` command for example) that calculates to your current timezone. From `man date`: it is the ${TZ} environment variable that sets the timezone. See `man tztab` and `man environ` for details on how to control this.
The ntp-protocol and the ntp-deamon are there to keep the internal time (epoc) in sync with the rest of the world. Use `sam` to setup ntp. If you donnot have an ntp-server around and your internet-provider had none either, you can use 'pool.ntp.org', see http://www.pool.ntp.org/#use for details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2005 12:27 AM
05-26-2005 12:27 AM
Re: Brazil timezone issue
The TZ variable is set to "BEST3BEDT". That is why I am so confused. The system continues to display the date/time as BEDT and 2 hour behind UTC. I have tried making changes to the tztab, however, have been unsuccessful to make it to display time in "standard time" for Eastern Brazil (3 hours behind UTC). Very strange. Well for now I have done a "set_parms timezone" and walked through the menu's so the time is now correctly displayed as 3 hours behind UTC, however, the TZ variable is now "SAT". I don't think the actual "string" in the TZ variable will affect anything as long as the time calculations "behind it" are correctly modifying the displayed time.
Thanks to all for your help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2005 04:52 PM
05-26-2005 04:52 PM
Re: Brazil timezone issue
BEST3BEDT
0 0 15-21 2 2003 0 BEST3
0 0 18-24 10 2003 0 BEDT2
0 0 14-20 2 2004 0 BEST3
0 0 1-2 11 2004 2 BEDT2
0 0 20-21 2 2005 0 BEST3
$ TZ=BEST3BEDT date; date -u
Fri May 27 02:41:56 BEDT 2005
Fri May 27 04:41:56 UTC 2005
When I changed the last two lines to include the range of 7 days (1-2 -> 1-7 and 20-21 -> 20-26) then it shows difference of 3 hours, which is correct.
0 0 1-7 11 2004 2 BEDT2
0 0 20-26 2 2005 0 BEST3
$ TZ=BEST3BEDT date; date -u
Fri May 27 01:48:16 BEST 2005
Fri May 27 04:48:16 UTC 2005
So I think it has a problem when day of the month range includes anything but 7 days.