bugfix for jan 1 prob

review here: http://mrccodereview.cloudapp.net/ui#review:id=1266