The "date" property returned with latestState() appears to be the cassandra column timestamp. "value" is the actual value but it's stored as a string and must be cast back to Long.
I'll add that I verified that "value" was the correct value and "date.getTime()" the wrong value by doing debug logs in createPressEvent and createButtonEvent and verifying that they matched.
The "date" property returned with latestState() appears to be the cassandra column timestamp. "value" is the actual value but it's stored as a string and must be cast back to Long.