Recent Topics

[4.0.3] Posting Date Didn't Reflect the Actual Date

Started by on Jan 01, 2011 – Contents updated: Jan 01, 2011

Jan 01, 2011 22:32    

My b2evolution Version: 4.0.3

I seem to have a problem with the posting date. It seems that there are only 2 dates that are set per month, either 1st day or 11th/12th day. If I created a post past 11th/12th day, the date still on the 12th..
(http://onlineenglish4u.com/blogs//index.php/learningmaterials/)
The main locale is English-US.
Perhaps I overlook something on settings. Hope someone can enlighten and help me this. Thanks in advance.

Jan 02, 2011 01:57

Welcome to the forum!

You have an extra slash in b2evo base URL. You should edit the file /blogs/conf/_basic_config.php and set $baseurl = 'http://onlineenglish4u.com/blogs/';

Regarding the wrong date, remove the following line from file /skins/gossip_city/index.main.php:114

PHP

'time_format' => 'Mn,Y',

Jan 02, 2011 03:08

Thanks.. fixed base URL...
but i'm not sure which line to remove from file /skins/gossip_city/index.main.php... line 111-

<div class="PostHead">

<div class="PostTime">
<span class="dateonly">
<?php
$Item->issue_time( array(
'time_format' => 'F n, Y @ ',
'before' => ' ',
'after' => '',
)); ?>

</span>

Jan 02, 2011 03:39

This one

PHP

'time_format' => 'F n, Y @ ',

You don't have to remove it actually, just comment-out

PHP

// 'time_format' => 'F n, Y @ ',

Jan 02, 2011 03:55

I think i made a mistake.. I put it this way:

<?php
$Item->issue_time( array(
// 'time_format' => 'F n, Y @ ',
'before' => ' ',
'after' => '',
)); ?>

</span>

<?php

and there are no dates.... :(

Jan 02, 2011 05:14

That was my mistake. Try this

PHP

'time_format' => locale_datefmt(),

Jan 02, 2011 06:50

It's working now :)
Thanks a bunch!~


Form is loading...

powered by b2evolution free blog software – This forum is powered by b2evolution CMS, a complete engine for your website.