By ebi on Thursday, 28 April 2016
Replies 25
Likes 0
Views 1.5K
Votes 0
Hello
i am using easy blog , easy discuss and komento
how to do change my post date to persian date (shamsi-jalali) ?

after every update my date change to english date

Thank you
I am sorry for the delay of this reply, may i know how do you update your post persian date (shamsi-jalali) previously?

So that we can see if that is possible to override in template file to avoid this happen again.
·
Friday, 29 April 2016 13:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey ebi,

Do you mean your new Easyblog site is not work? http://www.xxx-xxx.com/top/blog.html

If yes, may i know did you have update your persian language in Easyblog backend language section?

If still the same, can you provide us with your new site Joomla backend access so we can better have a look?

By the way, your old site access is not working.
·
Friday, 29 April 2016 19:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello
i am making a new style for my site and in new site that i am working on after install easy blog and easy discuss
date is English .
http://www.xxx-xxx.com/top/blog.html
in my old site my programmer changed it to Persian and i dont know how made it .
old site : http://xxx-xxx.com/blog.html

so i want purchases easy social and i want every date in blog , discuss , social , komento to be Persian date
so calender with shamsi-jalali date


i updated new site access

My desire is that fix this problem for always and wouldn't need after update component


Thank you
ebi
·
Friday, 29 April 2016 22:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello

please tell me
is it possible to change date from english date to persian (jalali - shamsi ) ?
because i want to purchase easy social and i want to use persian date with the format of years/mount/days in easyblog easydiscuss komento and easysocial

although i have to say i have 3 of your great component for about 3 years and now for purchase easysocial i want good discount for purchase



thank you
ebi
·
Monday, 02 May 2016 22:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Ebi,

I am really sorry for delay of this reply as it was weekend for us here last 2 days.

i am making a new style for my site and in new site that i am working on after install easy blog and easy discuss
date is English .
http://www.apple-nic.com/top/blog.html
in my old site my programmer changed it to Persian and i dont know how made it .
old site : http://apple-nic.com/blog.html

so i want purchases easy social and i want every date in blog , discuss , social , komento to be Persian date
so calender with shamsi-jalali date


i updated new site access

My desire is that fix this problem for always and wouldn't need after update component


I've tried to login in your backend, but it seems like you provided that login credentials is not working. Please advise.

It would be best if you can provide us with your old site and new site backend login access.

although i have to say i have 3 of your great component for about 3 years and now for purchase easysocial i want good discount for purchase

Perhaps you can start a new thread and set the post to private, so our marketing team will discuss you regarding this section.
·
Tuesday, 03 May 2016 12:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello
i have updated new login info and ftp

please check it
and i want to purchase easy social now, please if it's possible give me a discount code for my purchase

thank you
ebi
·
Tuesday, 03 May 2016 16:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks getting back to us quickly, can you check again, it should show Persian date language now.

Easydiscuss new site :
http://www.xxx-xxx.com/top/discussions/103-%D9%82%D9%88%D8%A7%D9%86%DB%8C%D9%86-%D9%88-%D8%B1%D8%A7%D9%87%D9%86%D9%85%D8%A7%DB%8C-%D8%A7%D8%B3%D8%AA%D9%81%D8%A7%D8%AF%D9%87-%D8%A7%D8%B2-%D8%A7%D9%86%D8%AC%D9%85%D9%86-%D9%88-%D9%86%D8%AD%D9%88%D9%87-%DA%A9%D8%B3%D8%A8-%D8%A7%D9%85%D8%AA%DB%8C%D8%A7%D8%B2.html

Easydiscuss old site :
http://www.xxx-xxxx.com/forum/103-%D9%82%D9%88%D8%A7%D9%86%DB%8C%D9%86-%D9%88-%D8%B1%D8%A7%D9%87%D9%86%D9%85%D8%A7%DB%8C-%D8%A7%D8%B3%D8%AA%D9%81%D8%A7%D8%AF%D9%87-%D8%A7%D8%B2-%D8%A7%D9%86%D8%AC%D9%85%D9%86-%D9%88-%D9%86%D8%AD%D9%88%D9%87-%DA%A9%D8%B3%D8%A8-%D8%A7%D9%85%D8%AA%DB%8C%D8%A7%D8%B2.html

---------------------------------------------------------------------------------------------------------------------------------
Easyblog new site :
http://www.xxx-xxx.com/top/blog/

Easyblog old site :
http://www.xxxx-xxx.com/blog/

---------------------------------------------------------------------------------------------------------------------------------
please check it
and i want to purchase easy social now, please if it's possible give me a discount code for my purchase

May i know did you have start a new thread in our forums yet? Once you create a new thread regarding this question, I can pass to our marketing team to follow up this.
·
Tuesday, 03 May 2016 19:04
·
0 Likes
·
0 Votes
·
0 Comments
·
thanks but it shows me سه شنبه ، 03 می 2016

the day is Persian but month - day number and year is still English with Persian character!
the correct format should be like this سه شنبه, 14 ارديبهشت 1395 instead of سه شنبه ، 03 می 2016

the correct required changed is still in our old site you check them out !
ebi
·
Tuesday, 03 May 2016 19:17
·
0 Likes
·
0 Votes
·
0 Comments
·
I am sorry for the delay of this reply, it seems like someone already help you fixed this issue in this following file.
JoomlaFolder/administrator/components/com_easyblog/includes/date/date.php
JoomlaFolder/administrator/components/com_easydiscuss/includes/date/date.php


Can you give it a check now is it work fine now?
·
Wednesday, 04 May 2016 18:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello
i fixe it my self in easy social - easy blog - easy discuss
and i want you to fix calender module in this components and calender in easysocial for birthday
and also i want know how to create an override for all these changes for further update

Thank you
ebi
·
Wednesday, 04 May 2016 18:23
·
0 Likes
·
0 Votes
·
0 Comments
·
and please if it's possible remove this message and all my website link from your previous comments on this topic.
my site is still in beta and i don't want my link to be published !
ebi
·
Wednesday, 04 May 2016 18:30
·
0 Likes
·
0 Votes
·
0 Comments
·
i fixe it my self in easy social - easy blog - easy discuss
and i want you to fix calender module in this components and calender in easysocial for birthday
and also i want know how to create an override for all these changes for further update

I will apply the proper fix in next release version.
But the calendar part is much tricky. I will consult with our developer regarding this.

and please if it's possible remove this message and all my website link from your previous comments on this topic.
my site is still in beta and i don't want my link to be published !

I already edited above post these website link.
·
Thursday, 05 May 2016 01:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello
how much more does it takes for you to convert the date format of calendar module from English to Persian or Jalali cause i need it now in Easy Blog and Easy Social !

please help me fix this issue i know it takes your time but i need it ASAP .

thanks
ebi
·
Saturday, 07 May 2016 22:35
·
0 Likes
·
0 Votes
·
0 Comments
·
I am sorry for the delay of this reply,

Can you try download my attached file for Easyblog and apply to following file and see how it goes?

JoomlaFolder\components\com_easyblog\themes\wireframe\blogs\calendar\calendar.php
JoomlaFolder\administrator\components\com_easyblog\includes\date\date.php


Add this following language string into this language file JoomlaFolder\language\fa-IR\fa-IR.com_easyblog.ini

COM_EASYBLOG_CALENDAR_DATE_DAY_1="12"
COM_EASYBLOG_CALENDAR_DATE_DAY_2="13"
COM_EASYBLOG_CALENDAR_DATE_DAY_3="14"
COM_EASYBLOG_CALENDAR_DATE_DAY_4="15"
COM_EASYBLOG_CALENDAR_DATE_DAY_5="16"
COM_EASYBLOG_CALENDAR_DATE_DAY_6="17"
COM_EASYBLOG_CALENDAR_DATE_DAY_7="18"
COM_EASYBLOG_CALENDAR_DATE_DAY_8="19"
COM_EASYBLOG_CALENDAR_DATE_DAY_9="20"
COM_EASYBLOG_CALENDAR_DATE_DAY_10="21"
COM_EASYBLOG_CALENDAR_DATE_DAY_11="22"
COM_EASYBLOG_CALENDAR_DATE_DAY_12="23"
COM_EASYBLOG_CALENDAR_DATE_DAY_13="24"
COM_EASYBLOG_CALENDAR_DATE_DAY_14="25"
COM_EASYBLOG_CALENDAR_DATE_DAY_15="26"
COM_EASYBLOG_CALENDAR_DATE_DAY_16="27"
COM_EASYBLOG_CALENDAR_DATE_DAY_17="28"
COM_EASYBLOG_CALENDAR_DATE_DAY_18="29"
COM_EASYBLOG_CALENDAR_DATE_DAY_19="30"
COM_EASYBLOG_CALENDAR_DATE_DAY_20="31"
COM_EASYBLOG_CALENDAR_DATE_DAY_21="1"
COM_EASYBLOG_CALENDAR_DATE_DAY_22="2"
COM_EASYBLOG_CALENDAR_DATE_DAY_23="3"
COM_EASYBLOG_CALENDAR_DATE_DAY_24="4"
COM_EASYBLOG_CALENDAR_DATE_DAY_25="5"
COM_EASYBLOG_CALENDAR_DATE_DAY_26="6"
COM_EASYBLOG_CALENDAR_DATE_DAY_27="7"
COM_EASYBLOG_CALENDAR_DATE_DAY_28="8"
COM_EASYBLOG_CALENDAR_DATE_DAY_29="9"
COM_EASYBLOG_CALENDAR_DATE_DAY_30="10"
COM_EASYBLOG_CALENDAR_DATE_DAY_31="11"
COM_EASYBLOG_CALENDAR_DATE_ONLY_MY_FORMAT="Y-M"
·
Monday, 09 May 2016 12:50
·
0 Likes
·
0 Votes
·
0 Comments
·
By the way, above persian numbering translation is it correct?
·
Monday, 09 May 2016 12:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello
i replace new file and add numbering translate and easublog calculator work currectly
but i have small issue
if you see my attached file
first day in month is 12 instate 1

and in archive blog module date is English yet

please check this page : http://www.apple-nic.com/top/blog.html

then i can use top code for easysocial calendar ?

Thank you
ebi
·
Monday, 09 May 2016 16:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello
main start of week in iran is saturday
how can i change it ?
ebi
·
Monday, 09 May 2016 16:23
·
0 Likes
·
0 Votes
·
0 Comments
·
I am not really familiar the persian date and time.

Can you try download my following file and replace into these file location and see how it goes?

JoomlaFolder\modules\mod_easyblogarchive\tmpl\default.php
JoomlaFolder\components\com_easyblog\themes\wireframe\blogs\calendar\calendar.php
JoomlaFolder\administrator\components\com_easyblog\themes\default\settings\general\general.php


Add this language string into JoomlaFolder\language\fa-IR\fa-IR.com_easyblog.ini

COM_EASYBLOG_CALENDAR_DATE_ONLY_Y_FORMAT="Y"


After you applied all the files, then go to your backend > Easyblog > settings > general > general > Start Of Week - Saturday.
·
Tuesday, 10 May 2016 01:13
·
0 Likes
·
0 Votes
·
0 Comments
·
thanks but i have 3 other problems

1. in my Archive Module although it's showing Persian Name of months and years but the month sorting system is still in English. the correct sorting of months will be like this :
فروردین
اردیبهشت
خرداد
reference: [image 1]

2. in my Calendar Module the start and End day of the month should be 1 and 30 or 31 but in my End it's showing it's showing from Day 12 of current months to Day 11 of next month
reference: [image 2]

3. in new admin section date you added in my backend when i try to select saturday after saving it's showing me sunday again !
ebi
·
Tuesday, 10 May 2016 01:43
·
0 Likes
·
0 Votes
·
0 Comments
·
the correct Conversion system of English to Persian Date will be as follow:

1. Jan => دی
2. Feb => بهمن
3. March => اسفند
4. April => فروردین
5. May => اردیبهشت
6. June => خرداد
7. July => تیر
8. Agu => مرداد
9. Sep => شهریور
10. Oct => مهر
11. Nov => آبان
12. Dec => آذر

current Persian Date :
Day: 20
Month: اردیبهشت
Year: 1395

this is the problem of lots of Persian users that are using or willing to use your components.
ebi
·
Tuesday, 10 May 2016 01:53
·
0 Likes
·
0 Votes
·
0 Comments
·
1. in my Archive Module although it's showing Persian Name of months and years but the month sorting system is still in English. the correct sorting of months will be like this :
فروردین
اردیبهشت
خرداد
reference: [image 1]

Hm, do you mean in persian month is start from April (English) first?
Example :
April
May
June
July
Aug
Sept
Oct
Nov
Dec
Jan
Fed
Mar

2. in my Calendar Module the start and End day of the month should be 1 and 30 or 31 but in my End it's showing it's showing from Day 12 of current months to Day 11 of next month
reference: [image 2]

Yes, I am very confusing on this, because I've tried to convert English date to persian date using this online convertor tool, based on this result, you can refer on my attached screenshot below.
For example : 2016 MAY 10 -> it will convert to Day: 1395 21 اردیبهشت instead of 20

Perhaps you can list here how the English date convert to persian date?
Example :
1 =>
2 =>
3 =>
4 =>
5 =>
...

3. in new admin section date you added in my backend when i try to select saturday after saving it's showing me sunday again !

Try download the following attached file again and replace into JoomlaFolder\administrator\components\com_easyblog\themes\default\settings\general\general.php, then select `saturday` option from backend Easyblog setting and save it.
·
Wednesday, 11 May 2016 00:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for the file, it fixes the problem,
for converting date i have to say the problem you are facing is because of out month days and the difference between them in English and Persian Date .
Here i can explain to you how to convert Persian to English Date with a simple formula

for example we want to convert 15/4/1383 to 5/7/2004:

first we need to keep this in mind :

DaysOfMonthsTable:

Month #1 English Calendar = 31 Days
Month #2 English Calendar = 28 Days ( 29 Days in Leap Years )
Month #3 English Calendar = 31 Days
Month #4 English Calendar = 30 Days
Month #5 English Calendar = 31 Days
Month #6 English Calendar = 30 Days
Month #7 English Calendar = 31 Days
Month #8 English Calendar = 31 Days
Month #9 English Calendar = 30 Days
Month #10 English Calendar = 31 Days
Month #11 English Calendar = 30 Days
Month #12 English Calendar = 31 Days

then we need to calculate the past days with this formula :
[(YEAR-1)*365]+[(MONTH-1)*DaysOfMonthsTable]+DAY+345 = 504883
[(1383-1)*365]+[(4-1)*31]+15+345 = 504883 =>Days

Then we have to plus this number (226899) with Days :504883+226899 = 731782

Then we have to convert 731782 to English Year Month and Day, to do that we have to :

First we need to cut the number of leap years in English date from that number and we know that according to English Calendar we have passed 500 leap year till now so 731782-500=731282

then we have to create the English Year like this
731282 / 365 = 2003
2003 + 1 = (2004)

the remaining number after our division (731282 / 365 = 2003) is 187
so we began to cut the days of months according to English calendar and we keep in mind that the 2004 is leap year and in a leap year the second month of the year has 29 days instead of 28
so :
187-31=156
156-29=127 (29 is because 2004 is a leap year)
127-31=96
96-30=66
66-31=35
35-30=5

and keep doing it until the remaining number become lower than the minimum numbers of a month
above we have 6 step of cutting so we add +1 to the 6 then we have the month number (7)

and the remaining number of last cutting step is the Day Number (5)

so the result will be 5/7/2004
ebi
·
Saturday, 14 May 2016 20:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey ebi,

I am sorry for the delay of this reply,

I am really appreciated that took your time to explained how the Persian calendar date formula look like.

Also I've tried to see is it possible to make a quick fix for this in current Easyblog English calendar structure to Persian calendar structure, but it seems like that quite difficult to convert to persian calendar structure using existing code based on you described that Persian calendar formula above.

And the way I get to show the days on the Persian calendar already wrong which I provided that fix at above http://stackideas.com/forums/change-english-date-to-persian-date-shamsi-jalali#reply-268448

I will lock this issue in our issue tracker and see if we can find out a better way to implement this fix in the future version.
·
Tuesday, 17 May 2016 13:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello
in latest version of easyblog fixed persian date but after update calendar is engilsh
when time calendar compatible with persian language ?
ebi
·
Monday, 13 June 2016 04:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey ebi,

I am sorry for the delay of this reply,

Hm, we actually can't tell you what is the exact date regarding make calendar compatible with persian language in our all the extension. Because currently our developers are actually quite tied up with Easysocial 2.0 and they also need times to study how the persian calendar work, we will see if we can find out a better solution on this in the future.
·
Monday, 13 June 2016 13:33
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post