bugs related to datetime