DatePicker disply year in english culture!

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
10/18/2012 12:55:10 PM
Gravatar
Total Posts 550

DatePicker disply year in english culture!

Hi Joe,

DatePicker display years in English culture. Is it a bug? or there is any settings to set?

The years must be as ...,1390.1391,...

Best,

Asad

 

10/18/2012 3:13:03 PM
Gravatar
Total Posts 18439

Re: DatePicker disply year in english culture!

Hi Asad,

Are you talking about the jquery datepicker or the asp.net ajax datepicker used in some of the add on features?

In any case I'm not aware of them ever having support for non-Gregorian calendars. Nothing has changed about them in a long time.

Best,

Joe

10/18/2012 3:29:33 PM
Gravatar
Total Posts 550

Re: DatePicker disply year in english culture!

Hi Joe, 

I talk about the jquery datepicker control ( DatePickerControl)  that used in blogs.

Best,

Asad

 

10/18/2012 3:32:26 PM
Gravatar
Total Posts 18439

Re: DatePicker disply year in english culture!

Hi Asad,

As far as I know it has never supported non-Gregorian calendars. It has not changed recently.

Best,

Joe

10/18/2012 6:16:06 PM
Gravatar
Total Posts 550

Re: DatePicker disply year in english culture!

Hi Joe, 

I did some googling and  find a good implementation, but I don't know the best way to integrate it in mojoPortal. 

Best,

Asad

10/19/2012 8:28:13 AM
Gravatar
Total Posts 18439

Re: DatePicker disply year in english culture!

Hi Asad,

That looks interesting. I will see what I can do about integrating it when I get a chance.

Best,

Joe

11/7/2012 2:40:02 PM
Gravatar
Total Posts 18439

Re: DatePicker disply year in english culture!

Hi Asad,

I was able to get the DatePicker working for Persian using that javascript, but I was not able to also make it work with a time picker. I treid using the timepicker by the same author and I was able to use both at the same time for the English/Gregorian calendar but when I tried to do it for Persian the timepicker throws errors about the format. Though the date picker supports non-Gregorian calendars the time picker does not so combining them did not work except when using a Gregorian calendar.

If you get the latest code you could try to use it with only the datepicker and you could leave out the time which will make it midnight on the date ie the beginning of the date or you could manually enter the time after picking the date.

To make it work copy the mojoDatePicker.config file and rename it to mojoDatePickerCustom.config

Then in the copy change the dfeaultProvider like this: defaultProvider="CalendarDatePickerProvider"

Then in user.config add this:

<add key="mojoDatePickerConfigFileName" value="mojoDatePickerCustom.config" />

Then force the site culture to Persian ie:

<add key="UseCultureOverride" value="true" />
<add key="site1culture" value="fa-IR" />
<add key="site1uiculture" value="fa-IR" />

Then in your skin add this in style.config

<file cssvpath="/ClientScript/jquery.calendars.package-1.1.4/jquery.calendars.picker.css" imagebasevpath="/ClientScript/jquery.calendars.package-1.1.4/">none</file>

to add the needed css for the datepicker

In my testing it works ok except for the fact that it doesn't support picking a time.

Maybe you can contact the author of this javascript and ask if he is willing to add support for picking time in the same textbox as the date.

Hope that helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.