Solved

disable daylight saving time in java application

Posted on 2004-04-11
5
1,279 Views
Last Modified: 2012-05-05
Hello All

This is my very first post to EE and trust me, i know nothing about java at all. I really dont know if i am asking this question in the right topic area but i am desprate to get any possible help. Now let me explain my problem to you. my company is running a billing application based on java (that i dont have source code of) with oracle 9i as database ( OS platform = Redhat linux 9.0) in Quetta, Pakistan. In pakistan we dont have the daylight saving time change (no forward or backward of clocks). Thogh my system's clock and timezone are properly configured (PKT or GMT+5) as well as oracle's time and timezone settings(NTP not implemented), a few days back the clock on the java application forwarded 1 hour with out any change in application or java while the system and database times are correct. This is causing a lot of problems for me becuase all the time based features of the application are effected. Since our support contract with the developer has expired its now up to me to find a solution and being a network engineer only i have no idea what to do or where to look for help. So please please please help me on this issue.

Regards
Mahmood Ahmed
0
Comment
Question by:braveheart_buraak
  • 2
  • 2
5 Comments
 
LVL 14

Accepted Solution

by:
Tommy Braas earned 125 total points
Comment Utility
Add the following to the java command line that launches your application:

-Duser.country=PK
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
I'm quite surprised that works actually - has it been tested?
0
 

Author Comment

by:braveheart_buraak
Comment Utility
No i did not try it because i didn't know where to put it. i mentioned in my original post that i dont have the source code of the application. any how the problem is solved as we have renewed the support contract with developer ( we thought that it is not wise to keep our network and users suffering for a little money ). to me the solution of the problem matters not a few point ..... so you can say that i gave away points for free.

Regards
Mahmood Ahmed
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
>>so you can say that i gave away points for free

Well please don't as this is against the member agreement
0
 
LVL 14

Expert Comment

by:Tommy Braas
Comment Utility
I am sorry to hear that weren't able to test my suggestion. I am glad to hear that you will have your problem resolved.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Java 1603 Error 2 42
return in catch statement 1 39
endX challenge 2 48
count11 challenge 6 47
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now