Skip to content
Browse files

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

  • Loading branch information...
1 parent 70d7e35 commit fc9fedb375943ad06d5478e91183fef1311bcade @mouneyrac mouneyrac committed May 3, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/adminlib.php
  2. +1 −1 webservice/renderer.php
View
2 lib/adminlib.php
@@ -7544,7 +7544,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
2 webservice/renderer.php
@@ -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 fc9fedb

Please sign in to comment.
Something went wrong with that request. Please try again.