diff --git a/frappe/core/doctype/user/user.js b/frappe/core/doctype/user/user.js index 24f9eb2cea..18e8651819 100644 --- a/frappe/core/doctype/user/user.js +++ b/frappe/core/doctype/user/user.js @@ -17,6 +17,16 @@ frappe.ui.form.on("User", { } }, + time_zone: function (frm) { + if (frm.doc.time_zone && frm.doc.time_zone.startsWith("Etc")) { + frm.set_df_property( + "time_zone", + "description", + __("Note: Etc timezones have their signs reversed.") + ); + } + }, + role_profile_name: function (frm) { if (frm.doc.role_profile_name) { frappe.call({ @@ -259,6 +269,7 @@ frappe.ui.form.on("User", { } frm.dirty(); } + frm.trigger("time_zone"); }, validate: function (frm) { if (frm.roles_editor) {