fixed browser date issues for firefox and safari