• 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

time zone?

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HELLO THERE ,

I WANT TO ASK ABOUT TIME ZONE , and i know this is not good room to ask about !!!
but my problem which i have depend on TIMEZONE AND Timer and TimerTask,
and here more description about it :
i use Time and TimeTask API to create schedule and it is run every minute

and it is checking what the time if inDaylightTime() or not but when i put the time and data at 10-march and the time is 23:58:40 PM so when i use inDaylightTime() i get false which is correct but when the is be 11-march and the time 00:01:40 AM it is still give false !!! and it have to give true

and my timeZONE it UTC !!!

so please any help ???/

[ February 05, 2007: Message edited by: tariq shadid ]

[ February 05, 2007: Message edited by: tariq shadid ]
[ February 05, 2007: Message edited by: Bear Bibeault ]
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The rules for daylight savings are changing in the USA this year. Have a look at the following:

U.S. Daylight Saving Time Changes in 2007

Which version of Java are you using? You might need an update. The article contains links for versions of Java that are updated for the daylight savings changes.
 
Ranch Hand
Posts: 116
Eclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If your timezone is UTC (as in "Etc/UTC") then it will always give false for inDaylightTime() because the UTC timezone does not implement daylight savings time.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic