Cast offset variable to int before trying to access string offset

Resolves an ugly PHP notice under PHP 5.4+ when using the getDayOffset()
and setDayOffset() methods in entities extending from RecordBaseEntity.

Signed-off-by: Max Fierke <max@maxfierke.com>