cmiles74 / bishop

A Webmachine-like library for Clojure
Other
95 stars 10 forks source link

SimpleDateFormat concurency problems #4

Closed itoshkov closed 12 years ago

itoshkov commented 12 years ago

java.text.SimpleDateFormat isn't thread safe (mentioned in the javadoc). You should either:

cmiles74 commented 12 years ago

I forgot about this issue, SimpleDateFormat is backed by a Calendar instance. :-(

Right now, I'm thinking I'll move to Joda time.

cmiles74 commented 12 years ago

I removed calls to the standard Java date functions and replaced them with calls to Joda time.

https://github.com/tnr-global/bishop/commit/4b197df8d3cfeffa8681efe17090a959fb5e3657