fix for datetime