locate date bug