fix date format for events

show hour of day when not using am/pm
remove unnecessary classes and imports