fix Safari dates