Registration Date in Reverse

Hi Guys,

Does anybody know how to correct the registration date in member profile?  All date formats are showing as dd,mm,yy, except for Rego Date.  In this case, it's displaying as yy,mm,dd.

Quote · 4 Jun 2009

Solved with a 5 second forum search for change date format  ..... 

Reference:
How To Search And Note For New Members In The Forums .....

HTH

.

Quote · 4 Jun 2009

Hi RumpyBumpy,

Thanks for the Search Forums tip.  I did play around with a few of those solutions and the best one I could find was this:

inc/classes/BxDolProfileFields.php solution works, but it mess "last login" and "last edit" dates. So small correction can fix that too.

find:

function getViewableDate( $sDate ) {
return $sDate;
}

and replace it with:

function getViewableDate( $sDate ) {
return (strftime(getParam('short_date_format'), strtotime($sDate)));
}

function getViewableDate2( $sDate ) {
return $sDate;
}

Now we have two functions: one that we modified and will use for our date and original one getViewableDate2 which will use to avoid wrong "last" dates. Now we need to go and use that getViewableDate2 at "last" dates. Find this function getViewableValue( $aItem, $sValue ) and there is:

case 'DateLastEdit':
case 'DateLastLogin':
return $this -> getViewableDate( $sValue );

just replace getViewableDate with getViewableDate2 like:

case 'DateLastEdit':
case 'DateLastLogin':
return $this -> getViewableDate2( $sValue );

and done. Now you have correct dates for DOB and last login/edit.

Cheers,

George

However, it doesn't effect the registration date, which continues to display in: 2009-06-03 20:49:13 format.

Does anybody else have a suggestion?

Quote · 5 Jun 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.