Quote:
Originally Posted by Steve M
tadded and radded is unix time inserted into the database when a ticket is added or a reply is added.
|
In that case I don't think you need to call strtotime() on them, you just want to subtract them as the come.
Quote:
So round() is possibly causing the problem? So far any thing I found that deals with giving an average uses round.
|
1 hr 45 min = 3600 + (45 * 60) = 6300 seconds.
hrs = 6300 / 3600 = 1.75, rounded up = 2 hrs, but floor(1.75) = 1