By Shane Seguin on Wednesday, 11 July 2018
Posted in General Issues
Replies 5
Likes 0
Views 471
Votes 0
Hello, currently blog posts entries on the front end display the date like this:

Wednesday, 11 July 2018

We would like to have it display like this instead. (by adding the time to the end).

Wednesday, 11 July 2018 - 11:08

How can we accomplish this? We want to make the blog entries to display the last modified time, and display it with the time.

Thankyou.
EasyBlog uses the format of DATE_FORMAT_LC1 for most of it's dates. If you want to change it to something different, you can create a template override and change it to use your own date format.

You can edit the file /components/com_easyblog/themes/vintage/blogs/entry/default.posts.php and search for the codes below:

[gist]
<?php echo $post->getDisplayDate($this->entryParams->get('post_date_source', 'created'))->format(JText::_('DATE_FORMAT_LC1')); ?>
[/gist]
·
Wednesday, 11 July 2018 21:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark, I did what you suggested using DATE_FORMAT_LC1 in the Language Overrides.

Another question, Easyblog currently displays a CLOCK icon next to the date, is there a way to change that to say LAST MODIFIED:

Is there a language override i could use in Joomla to change that?

Thank you.
·
Thursday, 12 July 2018 20:40
·
0 Likes
·
0 Votes
·
0 Comments
·
That is not part of the language file. If you want to alter it, you can edit the theme file /components/com_easyblog/themes/wireframe/blogs/entry/default.posts.php and locate the codes below,

[gist]
<div class="eb-entry-date">
<i class="fa fa-clock-o"></i>
<time class="eb-meta-date" itemprop="datePublished" content="<?php echo $post->getCreationDate($this->entryParams->get('post_date_source', 'created'))->format(JText::_('DATE_FORMAT_LC4'));?>">
<?php echo $post->getDisplayDate($this->entryParams->get('post_date_source', 'created'))->format(JText::_('DATE_FORMAT_LC1')); ?>
<meta itemprop="dateModified" content="<?php echo $post->getModifiedDate()->format(JText::_('DATE_FORMAT_LC4'));?>"/>
<meta itemprop="mainEntityOfPage" content="<?php echo $post->getPermalink(true, true);?>"/>
</time>
</div>
[/gist]
·
Thursday, 12 July 2018 20:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok sounds good.

Last question (i promise)

If I have a blog post that I want to unpublish automatically every day at 7am, is there a way i could do this? Without having to go into the blog post and change the unpublish time manually?

We want to display information that we will update daily but remove it first thing in the morning until we change it with the updated info.
·
Thursday, 12 July 2018 21:04
·
0 Likes
·
0 Votes
·
0 Comments
·
The only way to schedule to unpublish a post is to set the unpublish date on the post.
·
Thursday, 12 July 2018 21:16
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post