lpim.rb: Fixed event timestamps handling.

The interpretation of the event timestamps was not correct.