Date translation bug fix