fix findbugs warnings

* synchronize date parsing
* use commons date formatting