Permalink
Browse files

MDL-31193 display the correct and translated token valid until date

  • Loading branch information...
mouneyrac committed May 3, 2013
1 parent 95190fd commit 2af34ab005c74e0c47732341f612b89dc4935dd2
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/adminlib.php
  2. +1 −1 webservice/renderer.php
View
@@ -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 = '';
View
@@ -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;

0 comments on commit 2af34ab

Please sign in to comment.