fixed safari datetime bug