GUACAMOLE-422: Add timezone selection for RDP connections.

This commit is contained in:
Nick Couchman
2018-06-02 08:47:41 -04:00
committed by Virtually Nick
parent 3c9302f040
commit 8b443dc9d5
3 changed files with 10 additions and 1 deletions

View File

@@ -113,7 +113,8 @@ public class ModeledUser extends ModeledPermissions<UserModel> implements User {
new TextField(User.Attribute.FULL_NAME), new TextField(User.Attribute.FULL_NAME),
new EmailField(User.Attribute.EMAIL_ADDRESS), new EmailField(User.Attribute.EMAIL_ADDRESS),
new TextField(User.Attribute.ORGANIZATION), new TextField(User.Attribute.ORGANIZATION),
new TextField(User.Attribute.ORGANIZATIONAL_ROLE) new TextField(User.Attribute.ORGANIZATIONAL_ROLE),
new TimeZoneField(TIMEZONE_ATTRIBUTE_NAME)
)); ));
/** /**
@@ -349,6 +350,9 @@ public class ModeledUser extends ModeledPermissions<UserModel> implements User {
// Set role attribute // Set role attribute
attributes.put(User.Attribute.ORGANIZATIONAL_ROLE, getModel().getOrganizationalRole()); attributes.put(User.Attribute.ORGANIZATIONAL_ROLE, getModel().getOrganizationalRole());
// Set timezone attribute
attributes.put(TIMEZONE_ATTRIBUTE_NAME, getModel().getTimeZone());
} }
/** /**

View File

@@ -195,6 +195,10 @@
{ {
"name" : "static-channels", "name" : "static-channels",
"type" : "TEXT" "type" : "TEXT"
},
{
"name" : "timezone",
"type" : "TIMEZONE"
} }
] ]
}, },

View File

@@ -415,6 +415,7 @@
"FIELD_HEADER_REMOTE_APP_ARGS" : "Parameters:", "FIELD_HEADER_REMOTE_APP_ARGS" : "Parameters:",
"FIELD_HEADER_REMOTE_APP_DIR" : "Working directory:", "FIELD_HEADER_REMOTE_APP_DIR" : "Working directory:",
"FIELD_HEADER_REMOTE_APP" : "Program:", "FIELD_HEADER_REMOTE_APP" : "Program:",
"FIELD_HEADER_TIMEZONE" : "Timezone:",
"FIELD_HEADER_SECURITY" : "Security mode:", "FIELD_HEADER_SECURITY" : "Security mode:",
"FIELD_HEADER_SERVER_LAYOUT" : "Keyboard layout:", "FIELD_HEADER_SERVER_LAYOUT" : "Keyboard layout:",
"FIELD_HEADER_SFTP_DIRECTORY" : "Default upload directory:", "FIELD_HEADER_SFTP_DIRECTORY" : "Default upload directory:",