FixingTimezone Error

Technote (FAQ)


Question

"Why is there a timezone error in Metrica/Web?"

Cause

Certain graphs which require or uses timing information will not be able to generate correct graph output.

Answer

Methods which can be use to check and modify the timezone:

1) Change .profile timezone.
The global variable environment is set in .profile. Hence, we would need to change the .profile timezone.
Sample of .profile is shown below :
$ cat .profile
TZ=MEST
export TZ

Output :
$ env | grep TZ
TZ=MEST

2) Inside webconfig.sh OR etc/TIMEZONE
In the webconfig.sh file, we can set the environment, example as shown below:
TZ=MEST

etc/TIMEZONE
(a) Open a file call TIMEZONE located at /etc/TIMEZONE.
(b) Sample content for TIMEZONE file :
# @(#)init.dfl 1.2 92/11/26
#
# 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, or any of the LC_* environment variables.
#
TZ=Singapore
CMASK=022
~
~

(c) Modify the TIMEZONE file by setting the TZ. Since the .profile has been set to MEST, using MEST as example, modification done as follows :

Original in /etc/TIMEZONE:
TZ=Singapore
CMASK=022

Modified in /etc/TIMEZONE:
TZ=MEST
CMASK=022

(d) Restart the webserver to take effect.

Product Alias/Synonym

NPR

Rate this page:

(0 users)Average rating

Document information


More support for:

Network Performance Reporting

Software version:

3.1, 3.2, 3.3, 3.4, 3.5

Operating system(s):

Digital Unix (OSF1)(TRU64), HP-UX, Solaris

Software edition:

Standard

Reference #:

1391030

Modified date:

2011-04-05

Translate my page

Machine Translation

Content navigation