This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes GWT and the fly likes Timezone Issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "Timezone Issue" Watch "Timezone Issue" New topic
Author

Timezone Issue

Bhoomika Bathla
Ranch Hand

Joined: Nov 28, 2009
Posts: 40
Hi,

I have been given a requirement where the time on switzerland website is being displayed in BST.This needs to be corrected to display the time according to switzerland timezone.Parameters that are available with me is:

1. date object created from string for e.g "2013-07-21 16:30" (Date dateObject = DateTimeFormat.getFormat("yyyy-MM-dd HH:mm").parse("2013-07-21 16:30");).Here the time in date object is actually in BST.But after parsing date it returns Sun Jul 21 16:30:00 IST 2013.

I have tried few solutions but none of them seems to be working :



 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Timezone Issue
 
Similar Threads
Time difference
How do i format a string to date
getting time
parse date string
Adding offset to time zone in java