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 ForumsGalleryGalleryBugs reportBugs report
Previous
 
Next
New Post
12/22/2005 5:39 PM
 
This should work, since you should be writing and reading in the same culture. Unless the DefaultLanguage gets changed at some point ....

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
12/23/2005 5:05 AM
 

You are still right... With my solution, if I change the default  portal language after some image has been already added into a gallery and then I try to add another one, I recive an exception.
However, although I think that is unusually  to change the default portal language, an alternative should be to use the
Services.Localization.Localization.SystemLocale that is a constant  (Public Const SystemLocale As String = "en-US"),
so all dates will be written and read in the same format, and finally, will be displayed to each user  in his prefered format.


 

 
New Post
12/23/2005 9:25 AM
 

Sounds like it would work, I personally don't like my dates in US format, but that's the British for you.

In this case your parseexact statement would need to read -

Return DateTime.ParseExact(iterator.Current.Value(), "MM/dd/yyyy", ci.CurrentCulture)

Since this is the US date format. Or I think you could use

Return DateTime.Parse(iterator.Current.Value(), Services.Localization.Localization.SystemLocale)

Though I'd have to check it.

Cheers
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
12/23/2005 10:17 AM
 

Here how I Would do...

In Components/Utilities/XML.vb

At the top of the page i would insert

Imports System.Threading

Imports System.Globalization

Then I would create a new sub

Private Sub SetCurrentThreadCulure()

Dim ci As CultureInfo

ci = New CultureInfo(Convert.ToString(Services.Localization.Localization.SystemLocale))

Thread.CurrentThread.CurrentCulture = ci

End Sub

Finally i Would call the above sub where is needful

In

Public Shared Sub SaveMetaData - ( at the begin),

Public Function CreatedDate - ( at the begin) and

Public Function ApprovedDate - ( at the begin).

No date.ParseExact is needful, only DateTime.Parse(iterator.Current.Value()) or simply CDate(iterator.Current.Value())

I belive this should work. Bye

 
New Post
12/29/2005 10:41 AM
 

Chris

We should look at how the Vault works.
I did fix this bug (ctlModule.UpdateModuleSetting(ModuleId, "Skin", "DotNetNuke")) and checked into the Vault, I don't know why the bug still there

Thanks Sirioz10

Tam

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsGalleryGalleryBugs reportBugs report


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