Trying to add feature to serialize time as integer