fix specs and bugs for datetime and time