Welcome to JLogica Q&A, where you can ask questions and receive answers from other members of the community.

Use ISO Dates

0 votes
By default aMember uses timezone information to format date displays but YYYY-MM-DD dates globally required.
asked Nov 30, 2015 by Jenolan (730 points)
reopened Nov 30, 2015 by Jenolan

1 Answer

0 votes
 
Best answer

edit /amember/library/Am/Locale.php and replace

public function getDateFormat()
{
    $data = $this->getData();
    return empty($data['dateFormats']['php']) ? 'M d, Y' : $data['dateFormats']['php'];
}

With;

public function getDateFormat()
{
    return 'Y-m-d';
}

 

answered Nov 30, 2015 by Jenolan (730 points)
selected Nov 30, 2015 by Jenolan

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Jan 23, 2016 by Jenolan (730 points)
0 votes
1 answer
...