Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

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 ForumsEventsEventsII'm tired and rather crabby :)
Previous
 
Next
New Post
11/16/2006 1:59 AM
 

Ok...I'm updating our events module with important events.  So I enter an event.  Get the time zone thing straightened out and I've got it... Then I look at What's New... And it says... (In my best german accent):

Events: Official Launch - Donnerstag, 30. November 2006 12:00:00 (UTC 00:00)  

 

Donnerstag?  I'm not german.  My language is set to US.  What the heck?  Why is it printing hte day as Donnerstag instead of Thursday... And I'm using 1and1...and yes they are german...  Why don't they freakin set up their servers to US if they are in the US.   Man..  Anyone know of a hack for this to get this to show correctly...heck, I'll even settle for a way to hide it from what's new?

 

THanx in advance,

FrankT

"Official if something can go wrong with DNN, it will go wrong with me" :) 


Version: DNN 4.4.1
Hosting Provider: 1and1
RAISE
 
New Post
11/16/2006 4:26 AM
 

Hi Frank,

greatings from Karlsruhe, the town in Germany where 1&1 has their German operation center - shall I go over and shake them?


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
11/16/2006 8:44 AM
 

Leupold,

Yes.. Please... Go over there and tell them they need to have server farms where the language is set to different locales and then when you sign up they ask you what your language preference is and put your webspace on that server. 

Do you have idea of how I can fix this?  I don't see a what's new forum so I posted this in the events.  All of the other what's new things are displaying in english.  The event title is displaying in english inside of the what's new.  It's the date that's messed up. My language in DNN is set to english and I'm using DDN 4.3.5. 

Thanx

Frank


Version: DNN 4.4.1
Hosting Provider: 1and1
RAISE
 
New Post
11/16/2006 8:59 AM
 

Frank,

maybe the localization forum would have been a better place. Have a look into your web.config, there should be a globalization setting inside, check if it is set to en-US, otherwise it must be the server. Usually the module should use the current thread culture, that is retrieved from your DNN language settings, but when I look at Whatsnew source, it says

 
        Public Function FormatDate(ByVal pubDate As Date) As String
            Return pubDate.ToShortDateString()
        End Function

which is definately not the format displayed by the whatsNew.ascx, where it states

<asp:Label id="lblPubDate" runat="server" CssClass="Normal" Text='<%# FormatDate(DataBinder.Eval(Container.DataItem, "PubDate")) %>' Visible="<%# ShowDate() %>">

I don't have a clue ATM what is going on...


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
11/16/2006 12:08 PM
 

Leupold,

 

Hey, thanx for the quick replies.  If this is in the wrong place, feel free to move it.  It's actually a problem with the eventcontroller.vb file.  So I think this is in the right place. 

I've got it fixed.  I can tell you what's going on. 

When the event module implements the abstract method GetSearchItems it's using the following code:

 Dim strTitle As String = System.Web.HttpUtility.HtmlDecode(ModInfo.ModuleTitle & ": " & .EventName & " - " & Format(.EventDateBegin, "D") + " " + Format(.EventTimeBegin, "T") + " (UTC 00:00) ")
 Dim strDescription As String = HtmlUtils.Shorten(HtmlUtils.Clean(.EventDesc, False), 100, "...")
 Dim strContent As String = System.Web.HttpUtility.HtmlDecode(ModInfo.ModuleTitle & ": " & .EventName & " - " & Format(.EventDateBegin, "D") + " " + Format(.EventTimeBegin, "T") + " (UTC 00:00) " + strDescription)

It seems that the Format(.EventDateBegin, "D") is returning the host servers default local settings, not what I have set my portal to or what's in the web.config file (I had already checked

that setting in the web.config file).  So, to remove any words from the title stored in the searchitems table, I changed it to format the date as mm/dd/yyyy as seen below.

I recompiled it with visual studio 2005 and put the new dll out there and re-indexed my content manually.  And wala... No german! :)  I think this has to do with DNN, not the framwork however because I put a statement in my default.aspx page to print out <%Response.Write(Format(Today(),"D"))%> to see what it would print and it printed the english day of week.   Go figure... 

Anyhoo... Thanx for your quick replies. 

'FTC CHANGE - 10/16/2006 - CHANGE DATE FORMAT TO MM/DD/YYYY

Dim strTitle As String = System.Web.HttpUtility.HtmlDecode(ModInfo.ModuleTitle & ": " & .EventName & " - " & Format(.EventDateBegin, "M/d/yy") + " " + Format(.EventTimeBegin, "T") + " (UTC 00:00) ")

Dim strDescription As String = HtmlUtils.Shorten(HtmlUtils.Clean(.EventDesc, False), 100, "...")

'FTC CHANGE - 10/16/2006 - CHANGE DATE FORMAT TO MM/DD/YYYY

Dim strContent As String = System.Web.HttpUtility.HtmlDecode(ModInfo.ModuleTitle & ": " & .EventName & " - " & Format(.EventDateBegin, "M/d/yy") + " " + Format(.EventTimeBegin, "T") + " (UTC 00:00) " + strDescription)

 

 


Version: DNN 4.4.1
Hosting Provider: 1and1
RAISE
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsEventsEventsII'm tired and rather crabby :)


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