Default Time Zone for User Registration

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
11/21/2010 1:37:45 PM
Gravatar
Total Posts 7

Default Time Zone for User Registration

Hi:

I have a question regarding the default time zone for user registration.  It would be helpful to specify a default for the value in this drop down box on the new user registration page - especially for Web sites that cater to local customers.  I found the following code in the mojoProfile.comfig file:

   <add name="TimeZoneId"
      type=""
      iSettingControlSrc="~/Controls/TimeZoneIdSetting.ascx"
      labelResourceKey="TimeOffsetLabel"
      defaultValue="Eastern Standard Time"
      requiredForRegistration="true"
      regexValidationExpression=""
      regexValidationErrorResourceKey=""
      includeHelpLink="false"
   />

The text in the defaultValue field does not match up with the text in the dropdown box, so I am assuming it is tied to a variable somewhere else...  Anyway, on a hunch, I tried setting the defaultValue field to "Central Standard Time" and it worked.  Now the default value in the user registration drop box is "(GMT -6:00) Central Time (US & Canada)".  Is there a list of possible values for the defaultValue field that I can reference for future development?

Also, it would be handy to have the time zone field required for the initial creation of a user (from the Add User page), just so this important step is not forgotten by absent minded site administrators (like me).  Is this possible?

Thanks!

-- John Graminski



 

11/22/2010 6:49:30 AM
Gravatar
Total Posts 18439

Re: Default Time Zone for User Registration

You can view the source of the page that has the dropdown on it and see the full list of values in the markup. 

Hope it helps,

Joe

11/22/2010 9:19:01 AM
Gravatar
Total Posts 7

Re: Default Time Zone for User Registration

Thanks, Joe!  That's exactly what I was looking for.

-- John Graminski

You must sign in to post in the forums. This thread is closed to new posts.