fix for https://issues.infn.it/jira/browse/STOR-598
Moved TimeUnit conversion out from LogEvent
Removed useless import
Cosmetic fix
Merge pull request #21 from italiangrid/fix/STOR-598

fix for https://issues.infn.it/jira/browse/STOR-598