mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 16:04:25 +02:00
MDL-31193 display the correct and translated token valid until date
This commit is contained in:
parent
95190fda69
commit
2af34ab005
@ -7946,7 +7946,7 @@ class admin_setting_managewebservicetokens extends admin_setting {
|
||||
|
||||
$validuntil = '';
|
||||
if (!empty($token->validuntil)) {
|
||||
$validuntil = date("F j, Y"); //TODO: language support (look for moodle function)
|
||||
$validuntil = userdate($token->validuntil, get_string('strftimedatetime', 'langconfig'));
|
||||
}
|
||||
|
||||
$iprestriction = '';
|
||||
|
@ -332,7 +332,7 @@ class core_webservice_renderer extends plugin_renderer_base {
|
||||
|
||||
$validuntil = '';
|
||||
if (!empty($token->validuntil)) {
|
||||
$validuntil = date("F j, Y"); //TODO MDL-31193 language support (look for moodle function)
|
||||
$validuntil = userdate($token->validuntil, get_string('strftimedatetime', 'langconfig'));
|
||||
}
|
||||
|
||||
$tokenname = $token->name;
|
||||
|
Loading…
x
Reference in New Issue
Block a user