• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to Handle DayLightSavings in Gregorian Calendar

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI,
How to handle Day light savings in Gregorian Calendar. Do we need to set any properties or GC itself will take care the things. I am passing milliseconds and Timezone to the GC. I am passing "Asia/Almaty". But the updation is not proper.
Can any one give the suggestion.
Ravi
 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Generally, GregorianCalendar should take care of this for you, if it knows the correct Locale. But it's possible there's a bug. Can you provide more specific info about this? Showing some of the code? What's an example of a particular date/time with an incorrect result?
reply
    Bookmark Topic Watch Topic
  • New Topic