It now takes the UTC offset into account.
Have it now calculating avgs and finding the largest.  It works!