Topic Closed
franck
14 Posts

Hi,

Despite the fact that dates are set up for each new blog article,

<span class="simple_blog_date"></span>

remains empty as you can see.

Any possible reason for that?

 

    $blog_date = '<span class="simple_blog_date">';

    $blog_date .= strftime(SimpleBlogCommon::$data['strftime_format'],$post['time']);

    $blog_date .= '</span>';

 

After testing it appears that $data['strftime_format'] doesn't return anything while $post['time'] does.

And it's correctly set up in Admin_BlogConfig

 

 

 

 

Edited: 2 years ago#10504

DAL
29 Posts

Hi,

I've had this same issue previously and only had to debug it again recently. I don't know what causes the problem, but I was guessing it's a bug (maybe not quite a bug) that the date format on the hosting server or within Typesetter doesn't match the format of the Simple Blog plugin - so it may work for some where month comes before day in date format!!!!

To fix, enter a different date format in the back-end of Simple Blog configuration page in 'Date Format' field. Try: %b %Y as a test and this will display Month Year. You'll need to save configuration and may need to also click 'Regenerate Gadget' down the bottom of that config page too.

Let us know if that fixes it for you.

2 years ago#10506

franck
14 Posts

Hi Dal,

I've figured out that the problem happens only on my localhost.

No issue anymore when I test live on the remote server.

Since I don't have time for further testing I will lieave it as it is.

Thanks for reaching out!

2 years ago#10507

Topic Closed

 

News

elFinder 2.1.50 in Upcoming Release
12/28/2019

A new release for Typesetter is in the works with a lot of improvements including the ... Read More

Typesetter 5.1
8/12/2017

Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

More News

HH-Support

Company located in T├│rshavn, Faroe Islands. * Webpage Design * Consultant & Provider of a wide range of programs for visually impaired and dyslextics.

Find out more about our Provider Spotlight

Log In

  Register