Fix a bug of utils.getDate