date bugs

after year changed to 2013 we found date bugs