Fix UTC time handling in events.rb (fixes #344)