Skip to content

Commit

Permalink
MDL-31193 display the correct and translated token valid until date
Browse files Browse the repository at this point in the history
  • Loading branch information
mouneyrac committed May 3, 2013
1 parent 95190fd commit 2af34ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/adminlib.php
Expand Up @@ -7946,7 +7946,7 @@ public function output_html($data, $query='') {

$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 = '';
Expand Down
2 changes: 1 addition & 1 deletion webservice/renderer.php
Expand Up @@ -332,7 +332,7 @@ public function user_webservice_tokens_box($tokens, $userid, $documentation = fa

$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;
Expand Down

0 comments on commit 2af34ab

Please sign in to comment.