better debugging in date conversion
pure voodoo
whoops, wrong parentheses