date show 1970-Jan-01

Help for using / installing BetterAWStats

Re: date show 1970-Jan-01

Postby Oliver » 09 May 2009 21:33

Hi,

I am not sure if the datafile actually stores the dates in a local format.
I would have to see one complete datafile where this happens to debug this. So far I could not get any.

Please send one to me, I will keep the information confidential of course.
Oliver
BetterAWStats Creator/Admin
User avatar
Oliver
Site Admin
 
Posts: 147
Joined: 10 Mar 2008 19:09

Re: date show 1970-Jan-01

Postby Oliver » 13 May 2009 08:06

Ok found the problem.

I will make a new version for dowload available, but until then, here is the fix:

open the file

/core/library.inc.php

go to line 75. You will fine this text:

Code: Select all
    'layout_date' => array(
        'img' => '',
        'txt' => '',
        'frm' => "baw_getdate_format(%s);",
        'max'=> ''),


and change it into this here:

Code: Select all
    'layout_date' => array(
        'img' => '',
        'txt' => '',
        'frm' => "baw_getdate_format('%s');",
        'max'=> ''),

(note the ' ' quotes around the %s. This should fix it. if it does not please tell me.

Oliver
Oliver
BetterAWStats Creator/Admin
User avatar
Oliver
Site Admin
 
Posts: 147
Joined: 10 Mar 2008 19:09

Re: date show 1970-Jan-01

Postby New_BeAt » 21 May 2009 04:18

Hello,
Perfect, thanks for the tips - wich was finaly very simple - i should learn php :/

Everything is ok now.


Many thanks.

Best.
New_BeAt
 
Posts: 1
Joined: 21 May 2009 04:15

Previous

Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron