fix safari 6.1+ bug for timestamp detection