Skip navigation.

My Opera News

Behind the scenes at My Opera

Happy leap day

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

Tamil 29. February 2008, 15:44

:lol:

NoteMe 29. February 2008, 15:49

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


- ØØ -

Schalandra 29. February 2008, 15:58

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

ALLY_G 29. February 2008, 17:05

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

Mickeyjoe_irl 29. February 2008, 17:51

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:

kyleabaker 29. February 2008, 19:41

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!

nudelsieb 1. March 2008, 22:20

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

namkhanh 10. March 2008, 10:25

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

NoteMe 10. March 2008, 13:14

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

- ØØ -

namkhanh 10. March 2008, 14:01

yeah :yes:

bacaicoa 14. March 2008, 15:51

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

Write a comment

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