Fixed timezone bugs in earliestDate