changed time fields from int to encodedTime.Unix (updates #1)