07-31-2002
Shouldn't need to..... do an 'env' and see what your timezone is stating.
Try - as any user
date (this will show current date/time and timezone
export TZ=GMT (this will change to GMT)
date ( will show new timezone in GMT)
Changing the system TZ...(in the /etc/default/init file for my system SunOS 5.6) should make the new timezone be set. Users will probably have to exit and signon but you won't have to reboot box.
You may have a TZ setting in the users profile.....this would cause it to differ from the system one...check the .profile file inthe users home directory.
A few things to try anyway.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi! How ican change parameters for daylight, i mean, i want change the daylight on december first week. I've tried with /usr/lib/tztab but result unsuccessful. (7 Replies)
Discussion started by: agustincm
7 Replies
2. Solaris
Sun Solaris 4 - Need to know zone setting procedure. Please help!:( (6 Replies)
Discussion started by: nkpalkar
6 Replies
3. AIX
New to AIX
AIX 5.3
Is it possible to set the time zone for an individual user connection?
I have an environment that may be used by several global locations and the information they enter needs to be in each of their own time zones.
Ideally we need to do this for cron jobs as well. ... (3 Replies)
Discussion started by: MizzGail
3 Replies
4. Shell Programming and Scripting
Hi,
I'm new to shell script programming, I only have Java programming background.
I'm writing a shell script to do file synchronization between 2 machines that located at different time zone area. Both machine were set its time zone according to its geographical location (Eg: server is at... (1 Reply)
Discussion started by: python
1 Replies
5. AIX
Hi,
A server runs on EDT. Can I set a user with time-zone GMT without changing the server time?
regards,
Roshni (1 Reply)
Discussion started by: RoshniMehta
1 Replies
6. UNIX for Dummies Questions & Answers
Every time a new machine is installed with either Linux or FreeBSD we set the timezone to either UTC or CEST. However, the clock on the desktop is almost always one hour or two hours behind. We then run sysinstall > configure > time zone (FreeBSD) or set the clock in the panel (xfce / linux), but... (2 Replies)
Discussion started by: figaro
2 Replies
7. Solaris
I have a cluster of two Solaris server (veritas cluster). one working and the other is standby
I am going to change the date on them , and am looking for a secure solution as it is giving an important service.
my opinion is that the active one doesn't need to be restarted (if I don't change the... (1 Reply)
Discussion started by: barry1946
1 Replies
8. Solaris
can some one help me out as it is showing 2 different time zones in global zone and nonglobal zone .In global zone it is showing in GMT while in nonglobal zone i it showing as PDT.
System in running with solaris 10 (3 Replies)
Discussion started by: ravijanjanam12
3 Replies
9. Shell Programming and Scripting
Hi guys thanks for the help for my previous posts.Now i have a requirement that i download a XMl file which has UTC time stamp.I need to convert UTC time into Unix server timezone.
For ex if the time zone of unix server is CDT then i need to convert into CDT.whatever may be the system time... (5 Replies)
Discussion started by: mohanalakshmi
5 Replies
10. Solaris
So I started with following the example on the omnios page for bhyve (sorry, I can't provide the link because I'm a post shy of the 5 to give a URL):
And found that in the end I was able to create a running bhyve zone, but accessing it via zlogin results in a blank console. I've tried Debian 9... (14 Replies)
Discussion started by: stratacast1
14 Replies
LEARN ABOUT CENTOS
pmnewcontextzone
PMNEWCONTEXTZONE(3) Library Functions Manual PMNEWCONTEXTZONE(3)
NAME
pmNewContextZone - establish a reporting timezone based on a PMAPI context
C SYNOPSIS
#include <pcp/pmapi.h>
int pmNewContextZone(void);
cc ... -lpcp
DESCRIPTION
The current reporting timezone affects the timezone used by pmCtime(3) and pmLocaltime(3).
If the current PMAPI context is an archive, pmNewContextZone uses the timezone from the archive label record to set the current reporting
timezone.
If the current PMAPI context corresponds to a host source of metrics, pmNewContextZone executes a pmFetch(3) to retrieve the value for the
metric pmcd.timezone and uses that to set the current reporting timezone.
In both cases, pmNewContextZone returns a value to identify the current reporting timezone that may be used in a subsequent call to pmUse-
Zone(3) to restore this reporting timezone.
SEE ALSO
PMAPI(3), pmCtime(3), pmFetch(3), pmGetConfig(3), pmLocaltime(3), pmNewContext(3), pmNewZone(3), pmUseZone(3), pmWhichZone(3), pcp.conf(5),
pcp.env(5) and environ(5).
DIAGNOSTICS
PM_ERR_NOCONTEXT
the current PMAPI context is not valid
other a return value less than zero indicates a fatal error from a system call, most likely malloc(3C)
Performance Co-Pilot PCP PMNEWCONTEXTZONE(3)