fixed date problem for safari