hotfix for issue with datetime comparision