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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0"admin\Modules\modulesettings" Control Seems to fail when the culture is "ar-SA" "admin\Modules\modulesettings" Control Seems to fail when the culture is "ar-SA"
Previous
 
Next
New Post
7/28/2008 5:16 PM
 

Hi all ,

When i set the DNN culture to arabic - saudi arabia , the DNN DateEdit control doesn't work proeprly , it seems that the DNN is not working well with Hijri calendar

Because the "Website\admin\Modules\modulesettings.ascx" control will not insert the Datas correctly to the database !

for example , when you go to module settings ,and under advanced settings , and when you try to set the module start date and End date , an invalid date will be parsed and inserted to the database , something like 1987 ....

I looked at the source code and the way they are parsing the date from  Textboxes , They sed Convert.ConvertToDateTime(.....

And it seems that funcion will fail in hijri calendar ,

I tried this code in my custom modules and it wokred well for both en-US and arabic saudi arabia ( ar-SA)

       public static DateTime ParsedateString(string DateStr)
       {
       return DateTime.ParseExact(DateStr, DateTimeformatInfo.CurrentInfo.ShortDatePattern,  new  CultureInfo("en-US"));
       }

I'm using it by passing the DateTimeEdit Control value to that function , and it correctly returns the correct date object .

I also tried to pass a custom format for the DateTimeEdit Control (Via its Custom Attributes property) and i didn't get any positive result ,I'm not sure if its a bug or there is something I'm missing !

Thanks for any help .

 


Anas Ghanem,
My blog
 
New Post
8/6/2008 9:34 AM
 

I feel its a bug in the portal ,can anyone check that thing ?


Anas Ghanem,
My blog
 
New Post
8/15/2008 8:45 AM
 

You can try overridding it with your own datetime conversion function.

 
New Post
8/15/2008 10:04 AM
 

Dear Anas,

I'm not sure if it helps, but sometimes when you put for example arabic names for your pages in DNN strange problems happens until you disable the friendly URL functionality, try to disable it and see if it helps.

Arash

www.eyval.com

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0"admin\Modules\modulesettings" Control Seems to fail when the culture is "ar-SA" "admin\Modules\modulesettings" Control Seems to fail when the culture is "ar-SA"


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