Overriding JDK's Default Timezone definitions?

How can override the default Timezone Offets that come along with JDK 1.5?
Is there any property file that I can define?

User.timezone property can help to override but the change lives only during the program execution.
Is there any way to permanently define in a property file?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

read this:


Take a look at part Saving Properties
rkonka123Author Commented:
Is there any property file that JRE uses for loading timezone info during its startup ?

Use java -Duser.timezone=UTC MyProgram

to define the timezone

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

It looks like You can't set it permanently, only for the duration of a program run. Although You can try setting the system timezone to some other, and check whether that changes the timezone showed by java. If yes, then You'll know java reads the system settings itself.
I think it gets it from the system settings.
rkonka123Author Commented:
JRE comes with set of supported Timezone codes, i think more than 100 timezone codes and it uses some property file to load this info.

I want to override this file. So is there any way to do this ?

C:\Program Files\Java\jre1.5.0_06\lib\tzmappings

am not aware of a properties file being involved
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.