Fixed bug posted by girishnair12345: "setCurrentDate doesnt work properly #4"