Other maybe useful thing : changing this snippet to handle locales.
I’ve customized myself by adding (for example, french) in my (fr)lang file :
setlocale(LC_ALL,"fr");
$wlpe_lang['dobFormat']='%d/%m/%Y';
$wlpe_lang['commaseparator']=',';
and changing in the class the way the dob is managed :
$age = substr($ageDecimal, 0, strpos($ageDecimal, "."));
$modx->setPlaceholder('view.dob', strftime('%m-%d-%Y', $viewUser['dob']));
$modx->setPlaceholder('view.age', $age);
changed to this :
$age = substr($ageDecimal, 0, strpos($ageDecimal,$this->LanguageArray['commaseparator']));
$modx->setPlaceholder('view.dob', strftime($this->LanguageArray['dobFormat'], $viewUser['dob']));
$modx->setPlaceholder('view.age', $age);
Of course, you may want to change it at some other places in the snippet, just look for the appropriate strftime