ActiveAttr, which assists with property management, does not recognize Time as a valid type. We tell it to interpret it as
Integer, as it will be when saved to the database.
defprimitive_typeIntegerend
.to_db
Converts the given DateTime (UTC) value to an Integer.
Only utc times are supported !