• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Date Displaying issue

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a Orace DB in India. one field is Date. This field value is inserted from a stored procudure. I mean java code is not providing this date value.

I get the Date value in following way
1. get Result Set
2. using resultset metadata, if my datatype is timestamp (i.e. Date)
then create a new Date object.
java.sql.Timestamp timestamp = (Timestamp) date;
return new Date(timestamp.getTime());

I am displaying this data using Date.toString() with Date formatter as "EEE, MMM d 'at' HH:mm:ss z"

Problem Desc ::
When i run my application server in India
It shows me TimeZone as IST
From one week when i run my application server in EU-London
all dates from one week, Its showing TimeZone as BST (British Summer Time)
But dates before one weeks, shows in GMT

Any help ?

Prashant
 
Yeah, but does being a ninja come with a dental plan? And what about this tiny ad?
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic