Fixed problem with date in safari