×

Notice

The forum is in read only mode.

can not unpublish date in fields

6 years 2 months ago #5977 by navid
I didn't want to unpublish start date or end date in jobs but i am using joomla farsi in which there is a jalali calendar.  Js jobs shows jalali calendar and it  surprised me. now after 2 weeks , I just tested and published a job in my site and suddenly found out that date shows correctly but not functioning. because every job that I publish are expired!! except those who I create from back-end.(now is 2018 but in Jalali calendar it is 1397). JS job shows it correct but all jobs that published now are expired!!!
So I decided to disable publish date and end day. But when I wanted to Unpublish date in the fields I found out I can not even unpublish dates,
I am really disappointed and desperately looking for a solution for this problem. If there is any way or any solution I am eagerly waiting for response.

Thank you in advance
6 years 2 months ago #5978 by navid
the posting time and date is shows correctly even in Jalali calendar.(in back-end). But the start publish and end publish time is not correct (since 2018 to 1397 is about 621 years earlier...
6 years 2 months ago #5979 by mohsin
for site
/components/com_jsjobs/models/job.php
line no 1178
old code
       $data = JHTML::_('date',strtotime($data),"Y-m-d H:i:s" );
       $data = JHTML::_('date',strtotime($data),"Y-m-d H:i:s" );
new code
       $data = date('Y-m-d H:i:s',strtotime($data) );
       $data = date('Y-m-d H:i:s',strtotime($data));


if you change your joomla admin to farsi then also change this
for admin
administrator/components/com_jsjobs/models/job.php
line no 456
old code
       $data = JHTML::_('date',strtotime($data),"Y-m-d H:i:s" );
       $data = JHTML::_('date',strtotime($data),"Y-m-d H:i:s" );
new code
       $data = date('Y-m-d H:i:s',strtotime($data) );
       $data = date('Y-m-d H:i:s',strtotime($data));
The following user(s) said Thank You: navid
Time to create page: 0.055 seconds

Please publish modules in offcanvas position.