Updating test case for toServer()

Updated check as time() is timezone independent, so the assertion fails as the call to date() is timezone sensitive