Timezone query


 
Thread Tools Search this Thread
Operating Systems Solaris Timezone query
# 1  
Old 02-05-2009
Timezone query

Hi Everyone,

We have Solaris server which displays the time in CET and our application is used across the globe.(Users are in singapore, poland, US).

At present in order to display Timezone we are manually manupulating time based on country in a enviromental file.

I want to know , do we have any file in solaris like /etc/profile where we can add one entry so that user accessing our application will see time as per his country. Kindly advise on this if you have any idea.

Cheers,
gehlnar
# 2  
Old 02-05-2009
This is what I do. The TZ line in /etc/default/init might need to be adjusted to match the location, so that programs (e.g. CDR) can read and display time stamps appropriately for the location. For example, you should use the line:

TZ=Australia/Broken_Hill

if you are in Broken Hill, Australia. After the TZ line in /etc/default/init is changed, the system needs to be rebooted to propagate the change to all processes/applications.
A TZ setting like Canada/Pacific operates by referring to a file /usr/share/lib/zoneinfo/Australia/Broken_Hill that contains compiled data about the history of time zone and daylight saving changes at that location. The time zone compiler can be run with the “zic”.
Example:
# cd /usr/share/lib/zoneinfo/src

# ls choose desired locations (e.g. northamerica & autralia)

# /usr/sbin/zic northamerica australia
Or # zic northamerica australia


This command generates compiled time zone files for all the locations
mentioned in the text file 'northamerica' and ‘australia’. This is a much larger set than the set of compiled time zone files shipped by default in Solaris. If you're in an unusual location, you'll need to run “zic” to get the proper time zone file; e.g. you must run zic to get “TZ=Antarctica/South_Pole” to work.
# 3  
Old 02-06-2009
Bug

Thanks for ur explaination , I need to have a look at this option.

Cheers,
gehlnar
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell Script to execute Oracle query taking input from a file to form query

Hi, I need to query Oracle database for 100 users. I have these 100 users in a file. I need a shell script which would read this User file (one user at a time) & query database. For instance: USER CITY --------- ---------- A CITY_A B CITY_B C ... (2 Replies)
Discussion started by: DevendraG
2 Replies

2. Solaris

TIMEZONE problem..

hii there... can you guys help me with TIMEZONE setting on my solaris box i tried to edit cat /etc/TIMEZONE..but i think it will work after rebooting, but something i did which took me to GMT my problem is i have this issue on a server, and i have to fix this without rebooting. thanks for... (1 Reply)
Discussion started by: 6pound
1 Replies

3. Solaris

timezone issue

Hi, On my server timezone is IST, so I have configured the sudo for user to change the date, but when he is changing the date time zone is also getting changed from ist to gmt. using solaris 10. I have checked in /etc/TIMEZONE file in that it is showing TZ=Asia/Calcutta, wheather any other file... (1 Reply)
Discussion started by: manoj.solaris
1 Replies

4. Red Hat

changing timezone

Hi, I would like to change time zone Linux from IST to US/Canada but not getting the option , I have run the command setup -> timezone configuration but not getting the option of us/canada or pacific us/canada. Please suggest. Regards, Manoj (1 Reply)
Discussion started by: manoj.solaris
1 Replies

5. Shell Programming and Scripting

Query Oracle tables and return values to shell script that calls the query

Hi, I have a requirement as below which needs to be done viz UNIX shell script (1) I have to connect to an Oracle database (2) Exexute "SELECT field_status from table 1" query on one of the tables. (3) Based on the result that I get from point (2), I have to update another table in the... (6 Replies)
Discussion started by: balaeswari
6 Replies

6. Solaris

Crontab and timezone

I am running SunOS 5.6. If I login with a ksh shell and type 'date'. I get the correct date and time related to the TZ, that is, >Tuesday July 27 09:50:25 NZST 2004 However, if I run under crontab, I get this. >Mon Jul 26 20:49:00 ESTEDT 2004 My question is; Does anyone know how to fix this... (2 Replies)
Discussion started by: lbeard
2 Replies

7. UNIX for Advanced & Expert Users

Timezone

HI ; I got Solaris8 installed oon Sunfire V440 .I have TZ=GMT in /etc/TIMEZONE , but when i log in as root i see the date in GMT+1. So i have every time to "set TZ=GMT ; export $TZ" . How can i set the TZ=GMT at the startup defenitely. Thanks :) (7 Replies)
Discussion started by: oss
7 Replies

8. UNIX for Dummies Questions & Answers

timezone

Hi, i am searching to change the timezone on a HP-UX11 system. Since last weekend the summertime started i am not able to change the time to the new time, every day the time changes back to wintertime. I think the problem is that the server is on the wrong timezone. Can someone help me please?... (1 Reply)
Discussion started by: eddyvdv
1 Replies

9. UNIX for Dummies Questions & Answers

Timezone

Hi, I got an question about changing timezone thrue command line on a SunOS Release 4.1.2 without restarting the computer. Now it's set on WET and I want to set the timezone to CET (GMT +1) Plz somebody help me. Regards Novisern:confused: (5 Replies)
Discussion started by: Novisern
5 Replies

10. UNIX for Dummies Questions & Answers

Timezone

Hello again, under hp-ux i have a file /etc/TIMEZONE. here is definied which timezone i am. i dont know who reads this file to set after reading the timezone under /usr/lib/tztab. my 2 questions, who reads the file /etc/TIMEZONE ( which service ) and do i need in the first line to set my... (6 Replies)
Discussion started by: ortsvorsteher
6 Replies
Login or Register to Ask a Question