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.
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. |
Solved with a 5 second forum search for change date format ..... |
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 ) { and replace it with: function getViewableDate( $sDate ) { function getViewableDate2( $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': just replace getViewableDate with getViewableDate2 like: case 'DateLastEdit': 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? |