• Post Reply Bookmark Topic Watch Topic
  • New Topic

Timezone related datetime conversion problem  RSS feed

 
Tariq Ahsan
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • 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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!