minor change
Add synchronized keyword for Date related method to avoid conflict in multi-thread condition.