File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes DST Problem on client side Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "DST Problem on client side" Watch "DST Problem on client side" New topic

DST Problem on client side

Deepa More
Ranch Hand

Joined: May 22, 2006
Posts: 68
We have web application running on websphere server located in US. One of the user(in London) gets one hour less time than the actual time should be. Timezone for that users region is GMT+0 that is GMT only. But because of DST it should be GMT+ 1(hour). Still that user is getting GMT, but other users of that region get valid time.
For example, If time in GMT is 11:00, then that specific user gets 11:00, while other users of same region gets 12:00 which is right time.
We checked Timezone of that user and it is set correctly.
What is the cause and solution for this?

Thanks in advance.
[ September 12, 2007: Message edited by: Deepa More ]
Deepa More
Ranch Hand

Joined: May 22, 2006
Posts: 68
There is no answer for this or what?
Can anybody please suggest me on this problem.

Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15082

If this problem only happens on one user's computer and not on the computers of other users in the same time zone, then the problem cannot be anything else than some setting or other problem on that user's computer.

Is the user running Windows? Which version of Windows? Is it different than what the other users are using? Does the user have all the latest Windows patches installed?

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Ilja Preuss

Joined: Jul 11, 2001
Posts: 14112
And what browser is he using? Does he get the same results with other browsers?

The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Tamas Jano
Ranch Hand

Joined: Feb 21, 2007
Posts: 55
Hi Deepa,

Just to make it clear, where exactly is getting the user the time? At display or in the back-end? If you log user actions on the server, what time is displayed or if you perform actions that insert/modify in the database and have the time saved what value is it? The correct or the wrong? If the wrong are Webspheres clustered and you might have a node in London?

If the wrong time is just in the browser, what exactly are you using to display it? Javascript or applet? Are you sure the time displayed comes from the server or is there a possibility that it comes from the client machine?

[ September 18, 2007: Message edited by: Tamas Jano ]
I agree. Here's the link:
subject: DST Problem on client side
It's not a secret anymore!