mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
GUACAMOLE-422: Use null exclusively for missing timezone.
This commit is contained in:
@@ -204,7 +204,7 @@ public class ConfiguredGuacamoleSocket implements GuacamoleSocket {
|
|||||||
if (protocol.isSupported(GuacamoleProtocolCapability.TIMEZONE_HANDSHAKE)) {
|
if (protocol.isSupported(GuacamoleProtocolCapability.TIMEZONE_HANDSHAKE)) {
|
||||||
// Send client timezone, if available
|
// Send client timezone, if available
|
||||||
String timezone = info.getTimezone();
|
String timezone = info.getTimezone();
|
||||||
if (timezone != null && !timezone.isEmpty()) {
|
if (timezone != null) {
|
||||||
writer.writeInstruction(
|
writer.writeInstruction(
|
||||||
new GuacamoleInstruction(
|
new GuacamoleInstruction(
|
||||||
"timezone",
|
"timezone",
|
||||||
|
@@ -62,7 +62,7 @@ public class GuacamoleClientInformation {
|
|||||||
/**
|
/**
|
||||||
* The timezone reported by the client.
|
* The timezone reported by the client.
|
||||||
*/
|
*/
|
||||||
private String timezone = "";
|
private String timezone;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the optimal screen width requested by the client, in pixels.
|
* Returns the optimal screen width requested by the client, in pixels.
|
||||||
@@ -151,8 +151,8 @@ public class GuacamoleClientInformation {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the timezone as reported by the client, or an empty String if
|
* Return the timezone as reported by the client, or null if the timezone
|
||||||
* one is not set.
|
* is not set. Valid timezones are specified in tz database format.
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
* A string value of the timezone reported by the client.
|
* A string value of the timezone reported by the client.
|
||||||
@@ -162,7 +162,9 @@ public class GuacamoleClientInformation {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the string value of the timezone.
|
* Set the string value of the timezone, or null if the timezone will not
|
||||||
|
* be provided by the client. Valid timezones are specified in tz
|
||||||
|
* database format.
|
||||||
*
|
*
|
||||||
* @param timezone
|
* @param timezone
|
||||||
* The string value of the timezone reported by the client.
|
* The string value of the timezone reported by the client.
|
||||||
|
Reference in New Issue
Block a user