2012-07-17, 04:23:05
(This post was last modified: 2012-07-17, 09:57:47 by curryZiniund.)
@fiktiv
The reason you're not getting the date to show up is because php under windows doesn't support the date format that GS Blog plugin is using by default. The plugin uses the strftime function to convert the date to a string and the function's 'format' parameter is set to: '%b %e, %Y'. The '%e' modifier which stands for the day of the month, with a space preceding single digits, is not supported on windows platform.
SOLUTION:
The solution is to change the 'format' parameter to something different. Open the 'plugins/blog.php' file and change line 1088 (GS Blog v.1.2.1) from this:
to something like this (notice the lack of the '%e' modifier):
This will change the way the date is formatted by default. If you want to use custom formatting for posts, you will need to do much the same thing, but instead of changing the 'blog.php' file, you will write your own code, i.e.
You can also try using a linux/unix based hosting service instead, which will alleviate the problem entirely.
The reason you're not getting the date to show up is because php under windows doesn't support the date format that GS Blog plugin is using by default. The plugin uses the strftime function to convert the date to a string and the function's 'format' parameter is set to: '%b %e, %Y'. The '%e' modifier which stands for the day of the month, with a space preceding single digits, is not supported on windows platform.
SOLUTION:
The solution is to change the 'format' parameter to something different. Open the 'plugins/blog.php' file and change line 1088 (GS Blog v.1.2.1) from this:
Code:
$date = $Blog->get_locale_date(strtotime($post->date), '%b %e, %Y');
Code:
$date = $Blog->get_locale_date(strtotime($post->date), '%b %#d, %Y');
Code:
<div class="date"><?php
echo $Blog->get_locale_date(strtotime($post->date), '<span class="month">%b</span> <span class="day">%#d</span> <span class="year">%Y</span>');
?></div>
You can also try using a linux/unix based hosting service instead, which will alleviate the problem entirely.