Update dependencies, make Date code thread safe