Click me
Kickstart your modernization with Digital Transformation Starter Kit - Free Download
Announcing Mobilize.Net and Snowflake partner to migrate data warehouses to the cloud.

Only 330 more days before your leap year bug blows up your system

by John Browne, on Feb 4, 2016 9:41:55 AM

Ok, 2016 is a leap year which means February has an extra day, right? But did you know that there could be another leap year bug waiting to happen on December 31? 

Why? Because sometimes we hard code a year as 365 days, when this year is actually 366 days long. And that means you can blow up on New Year's Eve, long after you've forgotten about Feb. 29 and are into your second bottle of bubbly.

new-years-eve-951749_960_720.jpg

To make things even more interesting, if your application or even your database server is hosted in the cloud, what time zone is it in? When does Feb. 29 or Dec. 31 actually happen? If the clock on your host is running UTC, midnight comes at 4pm Pacific time (when I would see it). 

You can read a lot more about famous leap year bugs in the past and things to check for in this interesting blog post from Microsoft. Like so much of what we have to deal with, something seemingly simple is nuanced with complexity. 

If your legacy apps are struggling to deal with more than just leap year correctness, give us a call. Legacy is all we do.

 

Topics:Leap yearbugs

Comments

Mobilize.Net Blog

Mobilize.Net accelerates and simplifies the transformation of software applications to .NET, web, mobile, and cloud platforms.
More →

More...

Subscribe to Blog

Download Free Trial