Browse Source

Merge pull request #1176 from jloguercio/1.11.x

Fix $humanForm variable missing
José Loguercio 8 years ago
parent
commit
bc1898916c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      main/inc/lib/internationalization.lib.php

+ 2 - 2
main/inc/lib/internationalization.lib.php

@@ -1964,13 +1964,13 @@ function _api_convert_encoding_supports($encoding) {
  */
 function apiGetHumanDateTime($date, $showTime = true, $humanForm = false) {
     if ($showTime) {
-        if ($dateHuman) {
+        if ($humanForm) {
            return $date->format('j M Y H:i:s');    
         } else {
            return $date->format('Y-m-d H:i:s');     
         }
     } else {
-        if ($dateHuman) {
+        if ($humanForm) {
            return $date->format('j M Y');    
         } else {
            return $date->format('Y-m-d');