Revert "Fixed that dynamic coditional retrieval does not work correctly. bugid:112462"

This reverts commit f29fefc320f36311aa9a7a0df4f5c1d6edaf3746.
Revert "Fixed that dynamic cache does not work correctly. bugid:112462"

This reverts commit b1b505896a5455453ee2d1f3a59f56a0b9b6a5c1.
Fixed that dynamic cache does not work correctly, by reverting datetime_to_timestamp() function. bugid:112462
Fixed that dynamic conditional retrieval does not work correctly. bugid:112462