Fix bug on DateTime class