fixed time syntax to correctly remove older dates