datetime aware patch