fix date timezone problems

fix pull request issues

client side validation added