• 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

Something funky in JDate

 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If I write this code:

I get the result as 6 a.m. today. But the documentation says, and the code suggests, that the result should be noon today (in the default time zone, which is wherever your computer happens to be). Has anyone else noticed this, or have I made some mistake?
[ May 05, 2005: Message edited by: Adam Vinueza ]
 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
[Adam]: But the documentation says, and the code suggests, that the result should be noon today (in the default time zone, which is wherever your computer happens to be)

No, the documentation just says "noon". It doesn't say anything about whether it's using the system default or something else - which means you should really consider this to be unspecified and therefore unreliable. Looking at the source code, it seems that "noon" means noon GMT, not noon local time. Which translates into 6:00 AM in your current time zone. (Hello from Boulder, by the way.)
 
Adam Vinueza
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ah, that explains it. I was just confused. Thanks for clearing it up!
 
"How many licks ..." - I think all of this dog's research starts with these words. Tasty tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic