How To Fix Zune Error Leap Year Tutorial

Home > Zune Error > Zune Error Leap Year

Zune Error Leap Year

Doing this triggers the code that reads the clock and converts it to a date and time. It's now fixed in the main text. Submit Thank You Invalid Email Follow UsOn Twitter 7 hours Meet the young geniuses behind Obama's favorite science projects: Follow Follow UsOn Facebook Don't miss our latest news, features and What lessons can we learn from this?

Vaughan-Nichols: Zune misery mystery solved John Traenkenschuh: Happy New Year, for many but maybe not for 30Gig Zune Owners Barbara Krasnoff: Zunes crash en masse RELATED TOPICS Mobile & Wireless Microsoft Since days == 366, no arithmetic could occur for either check (lesser or greater than). Does no one use a DIVIDE any more?// One would have to take out 1461-day chunks to do that. Year y is a leap year if it is a multiple of 400, or if it is a multiple of 4 but not of 100.

Brian, be proud of your writing and let it be known it's yours! I'd love to know what it is. Share Share Tweet Pin Comment Email Skip Social. The users of millions of faulty Samsung Galaxy Note7s face a another potential dilemma: The fate of...

Just have to recompile the driver, put it into the firmware and send out a firmware update, unless I'm missing something. i thought my zune was done for good which would have really sucked. View more comments popular The Guardian back to top home election 2016 US world opinion sports soccer tech selected arts lifestyle fashion business travel environment all sections close home election 2016 Study Patent Law WIRED Opinion Want Your Marijuana Startup to Succeed?

December 31, 2008. Fortunately, the same problem would not occur again until December 31, 2012 (the last day of the next leap year), and Microsoft has ample time to patch the Zune code by Max Hailperin says: 6 January 2009 at 1:15 pm Reply 3 of 3: Another plausible replacement for the buggy loop would use a test-in-the-middle loop. A task this simple shouldn't need so many ifs and elses.

If the date is available from the i.MX31, that is used, but if the i.MX31 has not had its real time clock reset since it was last powered back up, then Steven J. When we asked motorola about it they said "we don't understand the code - it was written by a consultant who no longer works for us" when the consultant was asked Evidently, we're counting from 1. 2.

Yes, in this case one can deduce from the comments that someone named Brian wrote it. If the current year is a leap year ("if (IsLeapYear(year))"), it subtracts 366 from days and adds one to year; otherwise it subtracts 365 from days and adds one to year. And, seemingly, in the case in question, they simplified a bit too much -- missing that the else clause was not *really* just an error report, but actually was a functionality-critical News Channels Startups Mobile Gadgets Enterprise Social Europe Asia Crunch Network Unicorn Leaderboard Gift Guides All Topics All Galleries All Timelines Video Shows Apps News Crunch Report Disrupt SF 2016 Gadgets

At the time, Microsoft mentioned that it would be phasing out the older models slowly--but the company didn't say the change would be this dramatic. But of course I wouldn't be writing this if the program always gave the right answer. Lee Vanessa Teague and J. The only way out of this mess was to wait until the next day, when the computation would go differently.

glibc locales, which have correctly handled leap years since, oh, the 1980s. Browse more... The internal clock on the Zune 30GB devices should automatically reset tomorrow noon GMT. "By tomorrow you should allow the battery to fully run out of power before the unit can Source Aleecia M.

You can also customize the types of stories it sends you. On the other hand, it shows that Microsoft is correct: tomorrow, everyone's Zunes will operate normally again. As background, the Zune 30 apparently uses a pair of chips from Freescale Semiconductor, each of which contains its own real-time clock.

Second, the code to for the two chips is broken into procedures differently: in the i.MX31 version, the code for accessing the raw number of days out of the hardware is

static int IsLeapYear(int y) { return !(y%400) || ( !(y%4) && (y%100) ); } To be sure we have the "counting the years" loop right, we could construct a loop invariant: TechHive Newsletter Get our Best of TechHive Newsletter Sign up to receive the top connected-home and home-entertainment news and reviews of the week.