Skip navigation.

exploreopera

| Help

Sign up | Help

Opera community blog

fred

Behind the scenes at the Opera community

avatar

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 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! ;-)

January releaseMyOpera scheduled downtime for upgrade

Comments

avatar
:lol:

By Tamil, # 29. February 2008, 15:44:03

avatar
It's said that the 29th of feb women can ask men to marry them. Guys, watch out, they are comming for you tonight....


- ØØ -

By NoteMe, # 29. February 2008, 15:49:59

avatar
Good job! :up:
A friend of mine got 9 years old today. This summer he will marry for the second time. :lol:

By Schalandra, # 29. February 2008, 15:58:00

avatar
:lol:
And a happy leap day to you too! :D

By ALLY_G, # 29. February 2008, 17:05:19

avatar
Of course, if you read this tomorrow, (that would be today for you, but then this article is from yesterday)...

I'm reading it now. If I try to think about it any further it makes my brain hurt. :faint:

By Mickeyjoe_irl, # 29. February 2008, 17:51:23

avatar
Little bugs like this that slip into your code are always a good laugh. :D Thanks for sharing! Glad to hear that it's fix so quickly!

By kyleabaker, # 29. February 2008, 19:41:33

avatar
Funny!
I'm glad that my program did not show a leap year bug (or none of the users found it) :wink:

By nudelsieb, # 1. March 2008, 22:20:07

avatar
Hehe, get married at leap year (29/2) is cool idea :jester:

By namkhanh, # 10. March 2008, 10:25:31

avatar
Why? Because then your wife can only get mad at you once every forth year because you forgot about it again? :D

- ØØ -

By NoteMe, # 10. March 2008, 13:14:06

avatar
yeah :yes:

By namkhanh, # 10. March 2008, 14:01:20

avatar
We married Feb. 29th 1984 (Nice year, too) It,s very funny.

By bacaicoa, # 14. March 2008, 15:51:58

Write a comment

You must be logged in to write a comment. if you're not a registered member, please sign up.

get your own blog at my.opera.com
July 2008
SMTWTFS
June 2008August 2008
12345
6789101112
13141516171819
20212223242526
2728293031