• 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
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Timezone related datetime conversion problem

 
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
On a web application on the client page the user can enter a datetime in the format of 'mm/dd/yyyy hh:mm:ss a' using a calendar (which uses a javascript function). When the page postbacks to the server it has to know the user's timzone and then convert the user's datetime into UTC datetime (also considering daylight saving) before saving this into the database. On displaying this datetime back on the client page datetime conversion need to happen from UTC to client browser's local timezone. Ofcourse here we are considering server and client in different timezones. By the way, I am using IBM Rational Application Developer 6.0 and Oracle 10g database.
Would appreciate if I could any lead if possible with code snippets on solving this problem.

Thanks in advance.
 
A tiny monkey bit me and I got tiny ads:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic