[pve-devel] [PATCH manager 4/5] add timezone setting to lxc options

Oguz Bektas o.bektas at proxmox.com
Tue Jun 16 15:36:32 CEST 2020


this allows us to set the timezone of a container in the options menu.

Signed-off-by: Oguz Bektas <o.bektas at proxmox.com>
---
 www/manager6/lxc/Options.js | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/www/manager6/lxc/Options.js b/www/manager6/lxc/Options.js
index 40bde35f..f6e457a3 100644
--- a/www/manager6/lxc/Options.js
+++ b/www/manager6/lxc/Options.js
@@ -140,6 +140,19 @@ Ext.define('PVE.lxc.Options', {
 		editor: Proxmox.UserName === 'root at pam' ?
 		    'PVE.lxc.FeaturesEdit' : undefined
 	    },
+	    timezone: {
+		header: gettext('Time zone'),
+		defaultValue: 'CT managed',
+		deleteDefaultValue: true,
+		deleteEmpty: true,
+		editor: caps.vms['VM.Config.Options'] ? {
+		    xtype: 'proxmoxWindowEdit',
+		    items: {
+			xtype: 'PVETimezonePanel',
+			subject: gettext('Time zone'),
+		    }
+		} : undefined
+	    },
 	    hookscript: {
 		header: gettext('Hookscript')
 	    }
-- 
2.20.1




More information about the pve-devel mailing list