This commit is contained in:
zvonand 2023-05-11 01:10:34 +02:00
parent ecd0b4cc06
commit 07630ef43f
2 changed files with 5 additions and 7 deletions

View File

@ -1082,9 +1082,7 @@ void ClientBase::onProgress(const Progress & value)
void ClientBase::onTimezoneUpdate(const String & tz)
{
Settings settings;
settings.session_timezone = tz;
global_context->applySettingsChanges(settings.changes());
global_context->setSetting("session_timezone", tz);
}

View File

@ -355,10 +355,10 @@ void Connection::receiveHello()
nonce.emplace(read_nonce);
}
}
else if (packet_type == Protocol::Server::TimezoneUpdate)
{
// skip this packet at hello, will receive and process it later
}
// else if (packet_type == Protocol::Server::TimezoneUpdate)
// {
// // skip this packet at hello, will receive and process it later
// }
else if (packet_type == Protocol::Server::Exception)
receiveException()->rethrow();
else