Hello
I work often with module startdate and enddate. This was working fine until the update to DNN 6.0.x. If I set an enddate to a module, the module disappears at the selected date. As far as good. But if I want to change the settings of an expired module or a module with a startdate, I got the following error message after click on the button 'settings':
Error: is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: Value of '7/1/2011 12:00:00 AM' is not valid for 'SelectedDate'. 'SelectedDate' should be between 'MinDate' and 'MaxDate'. Parameter name: SelectedDate ---> System.ArgumentOutOfRangeException: Value of '7/1/2011 12:00:00 AM' is not valid for 'SelectedDate'. 'SelectedDate' should be between 'MinDate' and 'MaxDate'. Parameter name: SelectedDate at Telerik.Web.UI.RadDatePicker.set_SelectedDate(Nullable`1 value) at DotNetNuke.Modules.Admin.Modules.ModuleSettingsPage.BindData() at DotNetNuke.Modules.Admin.Modules.ModuleSettingsPage.OnLoad(EventArgs e) --- End of inner exception stack trace ---
As far as I understand, there's a problem by converting the value '7/1/2011 12:00:00 AM' to a value for the datepicker element. The only solution which I've found, is the remove the start- and enddate directly in the database by SQL.
UPDATE [dotnetnuke].[dbo].[dnn_Modules]
SET StartDate = NULL,
SET EndDate = NULL
WHERE ([ModuleID] = 536)
I've installed German-Switzerland as additional language. For administration, I use allways en-US. It could be a dateformat error, in Europe, we use 01.10.2011 for the first of October, with english regional settings it's '1/10/2011'. In the database, the value is stored as '7/1/2011 12:00:00 AM'. I think that's correct.
Does anybody know this behaviour and have a solution?
The second point is, that I can set an enddate for surveys on the settings-page. But the value isn't stored. If I re-open the setting-page of the survey, the enddate is empty again. This could be related to the error with start- and enddate.
Thank you for information
mibagict