fix some datetime warnings