[PLAT-4051] Date problem corrected. Added more tests.