Fix date conversion issue in Webkit

[ci skip]