fix datetime filter