added time difference calculations on server