Fix wrong saved legacy time_diff.

GitOrigin-RevId: 4ab3c37713c8d2b1d9f469cea4b13f0aab7558ac
This commit is contained in:
levlam 2020-03-11 01:24:07 +03:00
parent d48faede71
commit a0bf46a4d8

View File

@ -121,6 +121,8 @@ Status Global::init(const TdParameters &parameters, ActorId<Td> td, unique_ptr<T
<< tag("saved_system_time", saved_diff.system_time) << tag("system_time", system_time);
diff -= time_forward_fix;
}
} else if (saved_diff.diff >= 1500000000 && system_time >= 1500000000) { // only for saved_diff.system_time == 0
diff = default_time_difference;
}
LOG(DEBUG) << "LOAD: " << tag("server_time_difference", diff);
server_time_difference_ = diff;