Feb29
Happy leap day
Posted by nicomen
Today, some people reported to us that their blog posts where not showing in their calendar. A bit odd of course, except the entire day was missing from the February month. We quickly dropped everything and went right to it. No way, we were going to pretend today never existed.
The fix was twofold, one fix in our frontend code that did its own month representation calculation, and one on the backend which had stuff like
This means My Opera now is leap year compliant (at least in the calendar module)! Of course, if you read this tomorrow, (that would be today for you, but then this article is from yesterday), you will only have to wait 4 years till next time. Oh, and if you fire up your time machine and travel to year 1 BC, it won't show up either. (Which reminds me we have to add a bug report about this feature might be stopping working in 2038).
Have a nice leap day! ;-)
The fix was twofold, one fix in our frontend code that did its own month representation calculation, and one on the backend which had stuff like
if year % 4 && ! year % 100 && year % 400 in it. The solution was to move the calculation to one place, namely a standard third party library available for years and thorougly tested.This means My Opera now is leap year compliant (at least in the calendar module)! Of course, if you read this tomorrow, (that would be today for you, but then this article is from yesterday), you will only have to wait 4 years till next time. Oh, and if you fire up your time machine and travel to year 1 BC, it won't show up either. (Which reminds me we have to add a bug report about this feature might be stopping working in 2038).
Have a nice leap day! ;-)

By Tamil, # 29. February 2008, 15:44:03
- ØØ -
By NoteMe, # 29. February 2008, 15:49:59
A friend of mine got 9 years old today. This summer he will marry for the second time.
By Schalandra, # 29. February 2008, 15:58:00
And a happy leap day to you too!
By ALLY_G, # 29. February 2008, 17:05:19
I'm reading it now. If I try to think about it any further it makes my brain hurt.
By Mickeyjoe_irl, # 29. February 2008, 17:51:23
By kyleabaker, # 29. February 2008, 19:41:33
I'm glad that my program did not show a leap year bug (or none of the users found it)
By nudelsieb, # 1. March 2008, 22:20:07
By namkhanh, # 10. March 2008, 10:25:31
- ØØ -
By NoteMe, # 10. March 2008, 13:14:06
By namkhanh, # 10. March 2008, 14:01:20
By bacaicoa, # 14. March 2008, 15:51:58