Default Timezone and Users Timezone Questions

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
10/7/2010 4:27:06 AM
Gravatar
Total Posts 34

Default Timezone and Users Timezone Questions

Hi,

I have set my site settings timezone to GMT and also the offset in web.config, but when I manually create a user the timezone always starts on -5.00.  This isn't a big problem, I just wondered wether I could default the selected value to GMT.

Also, I read in other forum posts about the SiteUtils.GetUserTimeZone() to get the info for the Timezone offset so he/she could send emails to the user with correct times in.

As this has no overloads, I assume this gets the current user that is logged in.  I have to send an email to lots of different users, that potentially could have different timezones and they contain time/date critical information.  Worst case scenario is I state they are all UTC or GMT, but i would rather they were localised.  Is there a way to do this?

Great CMS though and keep up the good work!!

10/7/2010 8:55:45 AM
Gravatar
Total Posts 18439

Re: Default Timezone and Users Timezone Questions

The default comes from this setting in mojoProfile.config

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

You should use a custom version of this file as documented here instead of just changing it in mojoProfile.config

http://www.mojoportal.com/userprofileconfiguration.aspx

Hope it helps,

Joe

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