fixed some date translation bugs