Event Calendar Pro date formats

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.
8/3/2011 12:35:21 PM
Gravatar
Total Posts 537
feet planted firmly on the ground

Event Calendar Pro date formats

Have just started using Event Calendar Pro and I'd like to know what control we have over the date formats used in the various views (month, week, day, list, etc).

Out of the box it was using US dates, e.g. today being 03/08/2011 and I found another forum post explaining how to fix this into a particular regional setting:

<add key="site1culture" value="en-GB" />
<add key="UseCultureOverride" value="true" />

This works, so I get 03/08/2011, but I'd rather it respected the end user's regional settings rather than always being GB (this is for a site with an international audience). I assume the above hard-wires it to GB.

Also, can I give it a format string, as I think can be done for the Blog feature?

thanks

8/4/2011 7:05:44 AM
Gravatar
Total Posts 18439

Re: Event Calendar Pro date formats

If you don't force a specific culture by configuration, the default behavior is to use the user's language/culture as detected from their browser settings. Once you configure it to use a specific culture from the config file then it no longer adapts to the user.

The ability to specify a custom format string would be a feature request.

Using a custom format string vs adapting to the user are mutually exclusive choices, just as forcing a specific culture vs adapting to the user are mutually exclusive.

Best,

Joe

8/4/2011 8:03:49 AM
Gravatar
Total Posts 537
feet planted firmly on the ground

Re: Event Calendar Pro date formats

Thanks Joe - on the nail as usual. I had been testing in Chrome, with language set on the wrong side of the pond.

No request for change - this is ideal behaviour already.

ta

Crispin

12/16/2011 8:09:44 AM
Gravatar
Total Posts 46

Re: Event Calendar Pro date formats

Hi Joe, 

have the same issue but the problem is i have 300+ sites setup, to specifiy all of them with the site1Culture etc would take a while, is their any better way to specify the local? i need to force it to UK Date formats DD/MM/YYYY instead of MM/DD/YYYY as far as i can see the server is fully setup for United kingdom.

12/16/2011 8:11:08 AM
Gravatar
Total Posts 46

Re: Event Calendar Pro date formats

one thing i have noticed, if i try and set the timezone in the site settings it always reverts back to american, any ideas?

12/16/2011 10:24:39 AM
Gravatar
Total Posts 18439

Re: Event Calendar Pro date formats

Hi,

Really it would only take 15 minutes or so to manually configure all those sites, but you can do it faster using SQL Server Management Studio to run a query that generates the needed strings like this:

SELECT '<add key="site' + CONVERT(varchar(3),SiteID) + 'culture" value="en-GB" />'
FROM mp_Sites
ORDER BY SiteID

You'll need to click the toolbar item to change the results from grid to text, then you can copy/paste it into your user.config file

Regarding the time zone selection, are you saying that it doesn't stick when you save it in Site Settings? or are you saying it doesn't respect the site setting in the calendar?

Event Calendar Pro has its own time zone setting under instance settings and it uses that not the one from site settings.

Hope that helps,

Joe

12/16/2011 10:31:20 AM
Gravatar
Total Posts 46

Re: Event Calendar Pro date formats

when you select my timezone (uk gmt 0) in the drop down list, when you click save it goes back to -5 american time.

so if i set siteculture it should cure my issue with the incorrect dates on the event calendar or do i need to set a setting in the event calendar for each site?

12/16/2011 10:51:50 AM
Gravatar
Total Posts 18439

Re: Event Calendar Pro date formats

when you select my timezone (uk gmt 0) in the drop down list, when you click save it goes back to -5 american time.

Where in Site Settings or in Event Calendar Pro instance settings?

What version of Event Calendar Pro and what verison of mojoPortal?

Setting the site culture only affects formatting of the dates, time zone is independent of formatting, and yes it would need to be set for each calendar instance. Also when specifying the time zone in Event Calendar Pro settings make sure "Adapt to User time Zone" is not checked, otherwise it will adapt to the user profile time zone or the default time zone for the site if the request is not authenticated.

12/16/2011 11:03:31 AM
Gravatar
Total Posts 46

Re: Event Calendar Pro date formats

in site settings

mojoPortal Version 2.3.7.5 MSSQL

Server Time Zone GMT Standard Time
Server Local Time (GMT 0) 12/16/2011 5:02:03 PM
Greenwich Mean Time (GMT/UTC) 12/16/2011 5:02:03 PM

STS_EventCalendar 3.4.0.2

12/16/2011 11:10:16 AM
Gravatar
Total Posts 18439

Re: Event Calendar Pro date formats

I cannot reproduce that problem, if I change the time zone in Site Settings and save it, it does not revert back to Eastern Time.

I just tried it on the demo site and it works correctly there too.

3/2/2012 5:37:08 AM
Gravatar
Total Posts 46

Re: Event Calendar Pro date formats

Hi Joe, Yes this works in the demo but not on my site.

 

Whats the key im missing? im assuming its a entry in mp_siteSettingsEx ? if i could get that i can try and set it manually see if that fixes the issue.

 

Also after setting the culture and force culture override in the user.config (and refreshing the site) its still using the american date on the event calendar.

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