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

HomeHomeUsing DNN Platf...Using DNN Platf...Language and In...Language and In...[BUG] dnn Valid values are between 1318 and 1450, inclusive. Parameter name: year[BUG] dnn Valid values are between 1318 and 1450, inclusive. Parameter name: year
Previous
 
Next
New Post
5/16/2012 5:40 AM
 

hey everyone,

This bug appears when i go to any module settings when i am in using ar-SA culture. The calendar should be hijri. This bug is really annoying, i am using both dnn 6.1.4 and 6.1.5 and i'm facing it on both versions although the gemini says it's been resolved in 6.1.4.

It seems it appears since the radcalendar or raddatepicer doesn't change the culture correctly on the page load or init. I've tried it in one of my modules and it loaded without the error ( dnn Valid values are between 1318 and 1450, inclusive. Parameter name: year) as you can see in the following snapshot:


The good thing is that the month year is correct the bad thing is that the days are all messed up.

In addition if you click on any of the previous-next-first last- button or you even pick a date, the date is also messed up and incorrect. The following snapshot is when you click on the next for example button:


 

Anyone out there with a fix, alternative to this datepicker or additional info about this bug???

 
New Post
5/17/2012 4:54 AM
 

 I found the following workaround for module settings:

add to the control  in the directory dnndir\admin\Modules\modulesettings.ascx.cs

the following lines on bindata function:

private void BindData()
        {
            if (Module != null)
            {
                CultureInfo info = new CultureInfo("ar-SA");
                GregorianCalendar calendar = new GregorianCalendar();
                info.DateTimeFormat.Calendar = calendar;
                this.startDatePicker.Culture = info;
                this.endDatePicker.Culture = info;

etc...

And the error will cease to appear. You can also set the calendar to "HijriCalendar" instead of the "GregorianCalendar" object but the support for hijri is not available for raddatepicker as i noticed.

I hope DNN will have better support for the hijri calendar specifically the radcalendar and raddatepicker, since this is pretty annoying to Arabic site currently using DNN. 

 
New Post
5/17/2012 5:10 AM
 

We can do the same for the page settings available in:

dnndir\DesktopModules\Admin\Tabs\ManageTabs.ascx.cs on page_init

CultureInfo info = new CultureInfo(System.Threading.Thread.CurrentThread.CurrentCulture.ToString());
GregorianCalendar calendar = new GregorianCalendar();
info.DateTimeFormat.Calendar = calendar;
this.datepickerStartDate.Culture = info;
this.datepickerEndDate.Culture = info;

 

 
New Post
5/17/2012 7:31 AM
 
please log your findings into the DNN bug tracker at support.dotnetnuke.com in order to get it fixed - otherwise the dev team will not notice. Thank you!

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Language and In...Language and In...[BUG] dnn Valid values are between 1318 and 1450, inclusive. Parameter name: year[BUG] dnn Valid values are between 1318 and 1450, inclusive. Parameter name: year


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