Moved $timeOffset to header and removed dupe code for message listing
Moved $timeOffsetSeconds