Time zone on the user preference section

pavan patil
Tera Contributor

Hello Community,

 

I am working with the Employee Center portal and would like to remove the Time Zone field from the User Preferences section.

 

Could someone please guide me on:

 

  • Which widget is responsible for rendering the User Preferences section in Employee Center?
  • Whether this widget needs to be cloned to hide/remove the Time Zone field?
  • Any recommended or best-practice approach to achieve this customization?

 

 

Any guidance or references would be greatly appreciated.

 

Thank you in advance!

17 REPLIES 17

GlideFather
Tera Patron

Hi @pavan patil,

 

this is handled by "User profile" widget:

GlideFather_0-1768466907162.png

 

Find it here:

https://yourinstance.service-now.com/nav_to.do?uri=sp_widget.do?sys_id=6e6ac664d710120023c84f80de610318

 

Definitely don't modify this particular, rather clone it and make the changes for the cloned widget.

 

Comment: hiding the TZ by an ACL might be another solution. I would discourage you from hiding this unless it's really necessary, this allows people to see the timestamp in their timezone and for example people on business travels will lose their chance to make their preferences, something that should help them to use the platform easily and hiding it is agains it in my perspective...

_____
No AI was used in the writing of this post. Pure #GlideFather only

Dr Atul G- LNG
Tera Patron

Hi @pavan patil 

 

Go to widgets under Service Portal

 

DrAtulGLNG_0-1768468392140.png

 

As you check : Warning: This is a High Risk file that might get updated again in later releases. Do not alter this file unless necessary.

 

So dont change directly, clone and change

However, as a BPC, this is not a good use case because it prevents users from changing the time zone when they are traveling to a different location and time zone.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

Ankur Bawiskar
Tera Patron

@pavan patil 

another way is to update this property (Note: this is again system property and is risk to update as it's OOTB)

glide.timezone_changer.roles

-> OOTB it has itil and admin role

AnkurBawiskar_0-1768469131779.png

I updated it with maint role so that even admins can't change, if you want only admins can change then keep only admin

After

AnkurBawiskar_1-1768469192894.png

 

Output: it's gone even for admins

AnkurBawiskar_2-1768469221608.png

 

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@pavan patil 

did you get a chance to check this easy approach?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader