Kevin,

You stated that your goal was to be able to display things in the timezone of 
where the user is connecting from....

If that is the goal, if you just don't specify a timezone for the user in user 
preferences, doesn't that do what you are looking for?  There is no need for 
you to get the timezone and set the user preference, just have it be blank and 
the fallback of the system picks up the local timezone.  (at least that is the 
way I think it is supposed to work)

This is also more flexible for folks who DON'T want you doing that.  For 
example, if you did this to me, I would be off time for everything.  I never 
change my timezone and always have all displays in PST regardless of where I am 
in the world.  I do the translation of the time to the timezone so if you 
showed in local timezone, it would confuse me.  So, I could just set the 
timezone on my user preference to lock it in.

Others who wanted it adjusting would leave it blank and they would pick up the 
timezone from the current environment the client is running in.


Or maybe I am not understanding the requirement....

Doug Mueller

-----Original Message-----
From: Action Request System discussion list(ARSList) 
[mailto:arslist@ARSLIST.ORG] On Behalf Of Kevin Shaffer
Sent: Monday, April 13, 2015 2:40 PM
To: arslist@ARSLIST.ORG
Subject: Re: Finding the Local TZ for the User Logged In

Number 2.... capture where people are logging in from



Kevin Shaffer, Senior Partner
Partner IT, Inc.
(O) 888-380-8899
(C) 316-208-5341
(F) 708-887-1704

  

-----Original Message-----
From: Action Request System discussion list(ARSList) 
[mailto:arslist@ARSLIST.ORG] On Behalf Of Grooms, Frederick W
Sent: Monday, April 13, 2015 3:06 PM
To: arslist@ARSLIST.ORG
Subject: Re: Finding the Local TZ for the User Logged In

Is your requirement   
   1. To display all Dates/Times in the local timezone of the user   
 or   
   2. To capture where people are located (so it can be reported on)   

If it is for #1 (display of Dates/Times) then leaving the timezone empty on 
User Preferences will do that for you (You only need to fill it out of you want 
to override the automatic internal calculations).

Fred

-----Original Message-----
From: Action Request System discussion list(ARSList) 
[mailto:arslist@ARSLIST.ORG] On Behalf Of Kevin Shaffer
Sent: Monday, April 13, 2015 2:18 PM
To: arslist@ARSLIST.ORG
Subject: Finding the Local TZ for the User Logged In

I have a request from a customer for the following.

Scenario:  A user logs into the Mid-Tier.  The customer would like me to 
capture the local TimeZone of the person that is logged in and automatically 
update the timezone field on the Locale tab in the User Preferences form for 
that person.

Has anyone had a similar requirement or have any suggestions?  

TIA

Kevin Shaffer, Senior Partner
Partner IT, Inc.
(O) 888-380-8899
(C) 316-208-5341
(F) 708-887-1704

 



_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org "Where the Answers 
Are, and have been for 20 years"

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org "Where the Answers 
Are, and have been for 20 years"

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"

Reply via email to