Products

Solutions

Resources

Partners

Community

About

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 ForumsEventsEventsData format Conversion ErrorData format Conversion Error
Previous
 
Next
New Post
8/5/2009 10:39 AM
 

Hi Dimitar,

This means that the problem will be solved with version 5.0.3.

Previously dates were stored in the user language in the cookie. Clearly this is causing a problem for Cyrillic languages. So rather than stored in user language, it is stored in en-US, meaning we always know to retrieve in en-US and then convert to the user language for display.

Unfortunately I don't have a quick fix for you. Version 5.0.2 is going through the release process, and hopefully will be released soon. When it is, we will then start to publish betas of version 5.0.3 on www.dnnevents.net. I can imagine that will still be a few weeks away depending on team members time.

Roger


DNN MVP
Events - Get the latest version - Upgrade now!!
Feedback 6.4.2 - Now available - Give it a go!
Find us on Codeplex - DNN Events, DNN Feedback
Requirements/Bugs - Please submit them on Codeplex
 
New Post
8/5/2009 12:32 PM
 

Hi Roger,

Thanx for your fast and detailed answers. I understand all the procedure and bug queue, versions etc. I should wait for 5.00.03.

Meanwhile just can you give me some directions how to go around the problem (not fix). Something like comment some lines of code and loose some module functionality but stop the error. Or put some format function in front of CType function or do something else manually. I can deal with VB.NET, HTML, ASP.NET, just some directions might cut my work 70%.

DMitar

 
New Post
8/5/2009 1:35 PM
 

Hi,

In EventBase.vb change the SelectedDate Property as below. You can then remove the PreviousCulture Property. This should sort the problem. If it doesn't work, let me know, because I would need to change my fix .

Cheers
Roger

 

        Private _SelectedDate As Date
        Private currculture As CultureInfo
        Public Property SelectedDate() As Date
            Get
                Try
                    currculture = System.Threading.Thread.CurrentThread.CurrentCulture
                    If _SelectedDate.Year = 1 Then
                        If Request.Cookies("DNNEvents") Is Nothing Then
                            Me.SelectedDate = ConvertTimeZone(Date.Now)
                        ElseIf Request.Cookies("DNNEvents")("EventSelectedDate" & ModuleId) Is Nothing Then
                            Me.SelectedDate = ConvertTimeZone(Date.Now)
                        Else
                            Dim cookieDate As String = Request.Cookies("DNNEvents")("EventSelectedDate" & ModuleId)
                            System.Threading.Thread.CurrentThread.CurrentCulture = New CultureInfo("en-US", False)
                            If CType(cookieDate, Date).Year = 1 Then
                                Me.SelectedDate = ConvertTimeZone(Date.Now)
                            Else
                                _SelectedDate = CType(cookieDate, Date)
                            End If
                            System.Threading.Thread.CurrentThread.CurrentCulture = currculture
                        End If
                    End If
                    Return _SelectedDate
                Catch exc As Exception
                    System.Threading.Thread.CurrentThread.CurrentCulture = currculture
                    Me.SelectedDate = ConvertTimeZone(Date.Now)
                    Return _SelectedDate
                End Try
            End Get
            Set(ByVal Value As Date)
                If IsDate(Value) Then
                    _SelectedDate = CType(Value.ToShortDateString, Date)
                Else
                    _SelectedDate = ConvertTimeZone(Date.Now)
                End If
                If _SelectedDate.Year = 1 Then
                    _SelectedDate = ConvertTimeZone(Date.Now)
                End If
                currculture = System.Threading.Thread.CurrentThread.CurrentCulture
                System.Threading.Thread.CurrentThread.CurrentCulture = New CultureInfo("en-US", False)
                Response.Cookies("DNNEvents")("EventSelectedDate" & ModuleId) = _SelectedDate.ToShortDateString
                Response.Cookies("DNNEvents").Expires = DateTime.Now.AddMinutes(2)
                Response.Cookies("DNNEvents").Path = "/"
                System.Threading.Thread.CurrentThread.CurrentCulture = currculture
            End Set
        End Property
 


DNN MVP
Events - Get the latest version - Upgrade now!!
Feedback 6.4.2 - Now available - Give it a go!
Find us on Codeplex - DNN Events, DNN Feedback
Requirements/Bugs - Please submit them on Codeplex
 
New Post
10/30/2009 4:51 AM
 

I had the same problem with greek localization. It works with this fix. Thanks

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsEventsEventsData format Conversion ErrorData format Conversion Error


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.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out