help to better help you:

Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!

[SOLVED] Don't show time in mod_jem

[SOLVED] Don't show time in mod_jem

6 years 1 month ago
#25459
I found a solution for you, because you only need no time in every place (even not in simple list)
And remember: This is a hack, after an update you have to redo:
in modules/mod_jem/helper.php
you look for
Code:
$lists[$i]->dateinfo = JemOutput::formatDateTime($row->dates, $row->times, $row->enddates, $row->endtimes, $dateFormat, $timeFormat, $addSuffix);
and replace it with
Code:
$lists[$i]->dateinfo = JemOutput::formatDateTime($row->dates, $row->times, $row->enddates, $row->endtimes, $row->jemsettings->showtime, $dateFormat, $timeFormat, $addSuffix);

Go then to settings and choose in list layout "no time display"

Please Log in or Create an account to join the conversation.

Re: [SOLVED] Don't show time in mod_jem

6 years 1 month ago
#25463
Undefined property: stdClass::$jemsettings

Also, my output.class.php function has the a different definition:
Code:
static public function formatDateTime($dateStart, $timeStart ='', $dateEnd = '', $timeEnd = '', $dateFormat = '', $timeFormat = '', $addSuffix = true, $showTime = true, $showDayLink = false)

Anyway, your fix, even if it worked, wouldn't be more helpful than the one I posted in the other thread :
Code:
$lists[$i]->dateinfo = JemOutput::formatDateTime($row->dates, $row->times, $row->enddates, $row->endtimes, $dateFormat, $timeFormat, $addSuffix, false);

Please Log in or Create an account to join the conversation.

Re: [SOLVED] Don't show time in mod_jem

6 years 1 month ago
#25465
yes, you're right. My solution gives this notice. When I disable the error notices, it works without any visible problems: only date, no comma, no time.
Perhaps it needs some definition in this helper file. Perhaps helps an other person, because me I am not a programmer!

Please Log in or Create an account to join the conversation.

Re: [SOLVED] Don't show time in mod_jem

6 years 3 weeks ago
#25467
my solution:
I added in site/modules/mod_jem/helper.php in about line 34
$showTime = false;
and as I wrote before then in about line 126 $showtime:
Code:
$lists[$i]->dateinfo = JemOutput::formatDateTime($row->dates, $row->times, $row->enddates, $row->endtimes, $showTime, $dateFormat, $timeFormat, $addSuffix);

even with error reporting "develop" I get no error notification.

Please Log in or Create an account to join the conversation.

Time to create page: 0.581 seconds