Fix duration of events
Improve date parser, fix parsing of unix timestamp
Fix nullpointer on rotate