Search
Wednesday, August 27, 2014 ..:: Home ::.. Register  Login
   Calendar  
     
  
   Search  
     
  
   Blogroll  
     
  
   Disclosure  
All blog entries are the opinions of the author and do not necessarily reflect the opinions of their employer. All the code presented is for explanation and demonstration purposes only. Any damages incurred to your site and/or data are not the responsibility of the author. Every effort is taken to ensure the code properly compiles, however sometimes there are some hiccups and you might be required to do your own debugging.
     
  
   TechTidBits (Blog)  

I think I found my first WP7 API bug?

Mar 18

Written by:
Thursday, March 18, 2010 12:01 AM  RssIcon

Possible bug with DateTime.NowYup, I think I found a bug in the way WP7 DateTime.Now function works.  Read on for more details.

Possible bug with DateTime.NowInteresting.  I think I found a potentail bug with the DateTime.Now API found in WP7. 

Last weekend we advanced our clocks one hour due to Daylight Savings Time (DST)  ("Spring ahead, fall back").  Well tonight, I was playing with another blog, and started playing around with the DateTime.Now in a TextBlock, but interestingly, the times didn't match my Windows 7 time (arrows on the right).  Odd, the times are exactly one hour off.....hhhhhmmmm DST bug maybe?

What's interesting is that DateTime.Now API has been around for a while now (MSDN Link) and it's a pretty simple thing to do, so maybe this is simply an oversight? 

Possible bug with DateTime.Now in code

If it is indeed a bug, I doubt it'll last for very long!  And if that's the case, then maybe Microsoft will contact me so I can do one of those "WP7 was my idea!" commercials?  Ok, ok, so maybe not, but you can't blame a geek for trying?! LOL

Now that's out in the open, it's time to grab a coffee and get coding.

UPDATE 03-18-2010: This is indeed a bug and was confirmed by Danny Chen and Abhinaba Basu from MSFT.  Very cool!  They know about it now, and I'm sure they'll have a fix out fast (hopefully before the Leafs win their next Stanely Cup?  DOH! LOL).

 

Resources:

MSDN: DateTime.Now Property

Source Code: http://www.pchenry.com:8080/svn/blog/trunk/2010/HelloWorld

WP7 Forums forum posting

Tags:
Categories:
Location: Blogs Parent Separator TechTidBits

Your name:
Gravatar Preview
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Title:
Comment:
Add Comment   Cancel 
     
  
Copyright 1999-2012 by PCHenry.com   Terms Of Use  Privacy Statement