try to deal with idiotic datetime class some more