• Post Reply Bookmark Topic Watch Topic
  • New Topic

Need Help : DST issue  RSS feed

ani jadhao
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on a DST issue. In my application , I have a timze zone , CDT and CST GMT -6, where DST is supposed to end on 1nd of nov Sun 2009. As the DST ends , the clocks are moved back to 1 hrs . Means when there will be 2am in the clock, the clock will be reversed back 1 hr and all clocks are adjusted to 1am. i.e. 1 hr more.

Now in my application , I am putting an entry in the database at 1.01am of 1.12 am 1nov sun 2009. Entry goes well in the data base as user selected. Now at the time specified by customer , i.e. 1.12 am an trigger should pick the entry from db. The trigger would be caused by a poller continuously polling db after 2 mins each for any new entry, matches the current time and db time entered by user , If the diff is less than 120 sec , then only the trigger will be successful and user will be notified for the further process.For above entries Ideally the tigger should successfully be caused at 1.10am , but the trigger is executing right after 1 hr . This is causing b'coz the DST ends at 2am and clocks are reset back to 1 am .

How can I identify the timezone of the time entered in db, from which I can get the DST offset and send the call to customer appropriately.
Can any one please tell me how can I handle this situation. How can I make customer and my system in time sync independent of DST. ?

Please reply
thanks in advance.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!