Using UNIX (epoch) time when sending events through the Socket Gateway.
All the time fields (First Occurrence, Last Occurrence, State Change, etc) are currently being sent as Human Readable time.
Resolving the problem
Convert the time fields from human readable to integer like so:
CREATE MAPPING StatusMap
'' = '@StateChange' CONVERT TO INTEGER,
'' = '@FirstOccurrence' CONVERT TO INTEGER,
'' = '@LastOccurrence' CONVERT TO INTEGER,
'' = '@InternalLast' CONVERT TO INTEGER,