- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: 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
07-08-2008 12:09 PM
07-08-2008 12:09 PM
Timezone issue . . .
I have some issue in tz. Please check the below output which can use to diagnose the exect problem. . .
Thanks & Regards,
Piyush Mathiya
=============================================
######### Defined time zone #############
# echo $TZ
CST6CDT
# cat /etc/default/tz
CST6CDT
# date
Tue Jul 8 14:52:28 CDT 2008
# env | grep -i tz
TZ=CST6CDT
######### In profile ####################
# cat /etc/profile | grep -i tz
TZ=MST7MDT # change this for local time.
######### In login time #################
Last successful login for mssun: Mon Jul 7 22:21:13 EST5EDT 2008
Last unsuccessful login for mssun: Mon Jul 7 15:18:07 EST5EDT 2008 on
Your password will expire on Fri Jul 11 19:23:00 EST5EDT 2008
---------------------------------------------
Can you please check, why it is different Time zone. My main proble is which TZ value "login" command is use.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2008 12:14 PM
07-08-2008 12:14 PM
Re: Timezone issue . . .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2008 12:52 PM
07-08-2008 12:52 PM
Re: Timezone issue . . .
Thanks for the reply, But my question is why it is showing EST5EDT after login.
Regards,
Piyush Mathiya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2008 01:05 PM
07-08-2008 01:05 PM
Re: Timezone issue . . .
Check /etc/TIMEZONE file.
Thanks,
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2008 01:15 PM
07-08-2008 01:15 PM
Re: Timezone issue . . .
Then /etc/TIMEZONE may be the place to look.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2008 02:11 PM
07-08-2008 02:11 PM
Re: Timezone issue . . .
# cat /etc/TIMEZONE
TZ=CST6CDT
export TZ
And I think at the time of login TZ is showing EST5EDT, and after that with the use of /etc/TIMEZONE, it is changing to CST6CDT. "EST5EDT" is the time zone which may be define at the installation time. What you are thinking?
Regards,
Piyush Mathiya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2008 01:18 AM
07-09-2008 01:18 AM
Re: Timezone issue . . .
Changing variables in files (any location) does not change the environment of any running processes.
So if you change TZ and do not restart sshd/inetd etc, the process will use the old TZ. Even if you change TZ in the login profile, the process will display the wrong time... remember: the login messages are not display by the shell!
The (probably) easiest way would be to reboot the system... that "restarts" all processes.
My 2 cents,
Armin
PS: Please assign points if you find answers useful!