Added trim value for correcting small time differences on the server