New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsEventsEventsModule Error - Help Me PleaseModule Error - Help Me Please
Previous
 
Next
New Post
8/28/2007 2:47 PM
 

Thanks xws-mika!  for having the clear mind to look deep enough to see there were two different problems.  I apologize for muddying the water for the initial poster.

Your work around for my problem appears to have worked so far.  I hope to see an updated version of the control so the Categories feature can be used.

Thanks again,

Mike (BOSSupport)

 
New Post
10/7/2007 9:21 AM
 

Hi,

I posted this on another thread, so reposting again here.

The message: "The added or subtracted value results in an un-representable DateTime" in the Events module is a bug (IMHO) - it assumes someone has selected a date on the Calendar, but when the first time the module loads no selection has been made (and the code tries to use year 1).

To fix, adjust the following section in DestopModules\Events\EventMonth.aspx.vb (03.03.08) around line 170:

 

'****DO NOT CHANGE THE NEXT SECTION FOR ML CODING ****' Used Only to select view dates on Event Month View...NOTE: SelectedDate is NOTE!!! Dim initDate As Date = New Date(Me.SelectedDate.Year, Me.SelectedDate.Month, 1)  
 
 
 
'KS fix bug where date has not been selected yet, so set to first of current month  If Me.SelectedDate.Year = 1 Then End If
 
    initDate = DateAdd(DateInterval.Day, (1 - Today.Day), Today)
 
 ' Allow for Prev Month days in View   
startDate = initDate.AddDays(-10)
 

 

 

Cheers,

Kent

 
New Post
10/7/2007 11:08 AM
 

Sorry, I had a lot of difficulties formatting with the FCKEditor...

The code should have read:


'****DO NOT CHANGE THE NEXT SECTION FOR ML CODING ****
' Used Only to select view dates on Event Month View...NOTE: SelectedDate is NOTE!!!
Dim initDate As Date = New Date(Me.SelectedDate.Year, Me.SelectedDate.Month, 1)

'KS fix bug where date has not been selected yet, so set to first of current month
If Me.SelectedDate.Year = 1 Then
    initDate = DateAdd(DateInterval.Day, (1 - Today.Day), Today)
End If

startDate = initDate.AddDays(-10) ' Allow for Prev Month days in View
' Load 2 months of events. This used to load only the events for the current month,


Cheers

 
New Post
10/7/2007 1:53 PM
 

Thanks, bumfluff!

 
New Post
6/4/2008 11:31 AM
 

Thank you for the tip.  I had upgraded the events calendar and discovered this problem.  It's now working. 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsEventsEventsModule Error - Help Me PleaseModule Error - Help Me Please


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.