support for non gregorian calendar

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

support for non gregorian calendar

ayyoob
Hi
I want to add support for Persian (Jalali) calendar to Ofbiz, so that the user can see dates in Jalali format like " دوشنبه - ۱۹ آبان ۱۳۹۳" and choose dates from Jalali calendar.
I found a thread which says that Ofbiz currently supports Jalali calendar: http://ofbiz.135035.n4.nabble.com/Re-Support-for-non-gregorian-calendars-td4645741.html 

And I found another suggestion to add Jalali calendar support to ofbiz in this thread:
http://www.opentaps.org/forum/opentaps-general-discussions/general-discussions-english/adding-non-gregorian-calendar

I am confused that whether does Ofbiz support Jalali calendar or not and how can I enable or add Jalali calendar to Ofbiz.
would you please give me some tips on how to do this?

Regards,

Ayyoob Imani
Reply | Threaded
Open this post in threaded view
|

Re: support for non gregorian calendar

Jacques Le Roux
Administrator
I don't know what is your situation now, but the opentaps thread is and old one. It's now almost 5 years that we replace calendar.js by jQuery addons
in OFBiz. So it's available in all releases since R10.04

Once again: Opentaps *IS NOT* OFBiz, better to refer to Adrian's advice (I did not try myself) than Opentaps threads...

Jacques

Le 10/11/2014 20:05, ayyoob a écrit :

> Hi
> I want to add support for Persian (Jalali) calendar to Ofbiz, so that the
> user can see dates in Jalali format like " دوشنبه - ۱۹ آبان ۱۳۹۳" and choose
> dates from Jalali calendar.
> I found a thread which says that Ofbiz currently supports Jalali calendar:
> http://ofbiz.135035.n4.nabble.com/Re-Support-for-non-gregorian-calendars-td4645741.html
>
> And I found another suggestion to add Jalali calendar support to ofbiz in
> this thread:
> http://www.opentaps.org/forum/opentaps-general-discussions/general-discussions-english/adding-non-gregorian-calendar
>
> I am confused that whether does Ofbiz support Jalali calendar or not and how
> can I enable or add Jalali calendar to Ofbiz.
> would you please give me some tips on how to do this?
>
> Regards,
>
> Ayyoob Imani
>
>
>
> --
> View this message in context: http://ofbiz.135035.n4.nabble.com/support-for-non-gregorian-calendar-tp4658070.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
>
Reply | Threaded
Open this post in threaded view
|

Re: support for non gregorian calendar

ayyoob
Thanks jaques for you reply, I decided to use my own Jalali datepicker to get jalali dates from user and convert it to Gregorian date before posting it to server, I changed "framework/widget/template/htmlFormMicroLibrary.ftl" and "framework/common/widget/commonscreens.xml#GlobalActions" files to add my own jquery addon.

now I want to convert Gregorian dates to Jalali dates before sending them to client. my question is where is the best place to convert dates? is there any specific function Ofbiz calls for every date field before sending it to client?

regards,

On Sun, Nov 16, 2014 at 8:38 PM, Jacques Le Roux [via OFBiz] <[hidden email]> wrote:
I don't know what is your situation now, but the opentaps thread is and old one. It's now almost 5 years that we replace calendar.js by jQuery addons
in OFBiz. So it's available in all releases since R10.04

Once again: Opentaps *IS NOT* OFBiz, better to refer to Adrian's advice (I did not try myself) than Opentaps threads...

Jacques

Le 10/11/2014 20:05, ayyoob a écrit :

> Hi
> I want to add support for Persian (Jalali) calendar to Ofbiz, so that the
> user can see dates in Jalali format like " دوشنبه - ۱۹ آبان ۱۳۹۳" and choose
> dates from Jalali calendar.
> I found a thread which says that Ofbiz currently supports Jalali calendar:
> http://ofbiz.135035.n4.nabble.com/Re-Support-for-non-gregorian-calendars-td4645741.html
>
> And I found another suggestion to add Jalali calendar support to ofbiz in
> this thread:
> http://www.opentaps.org/forum/opentaps-general-discussions/general-discussions-english/adding-non-gregorian-calendar
>
> I am confused that whether does Ofbiz support Jalali calendar or not and how
> can I enable or add Jalali calendar to Ofbiz.
> would you please give me some tips on how to do this?
>
> Regards,
>
> Ayyoob Imani
>
>
>
> --
> View this message in context: http://ofbiz.135035.n4.nabble.com/support-for-non-gregorian-calendar-tp4658070.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
>



If you reply to this email, your message will be added to the discussion below:
http://ofbiz.135035.n4.nabble.com/support-for-non-gregorian-calendar-tp4658070p4658539.html
To start a new topic under OFBiz - User, email [hidden email]
To unsubscribe from support for non gregorian calendar, click here.
NAML



--
.
.
.
Ayyoob Imani
BSC student of Computer Engineering
Iran University Of Scince & Technology (IUST)
[hidden email]