Skip to content

Commit 25f3503

Browse files
committed
Minor Bug Fix to the <date> tag
1 parent 9bd83a9 commit 25f3503

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

admin/download.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ function getAIMLByFileName($filename) {
140140
if (!empty($topic)) $fileContent .= "</topic>\n";
141141
}
142142
$fileContent .= "\r\n</aiml>\r\n";
143-
save_file(_DEBUG_PATH_ . 'test.aiml', $fileContent);
144143
$dom = new DOMDocument();
145144
$dom->preserveWhiteSpace = false;
146145
$dom->formatOutput = true;

chatbot/core/aiml/parse_aiml_as_XML.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,8 @@ function parse_date_tag($convoArr, $element, $parentName, $level)
245245
$tz = (!is_numeric($tz)) ? $tz : $tz_list[$tz];
246246
date_default_timezone_set($tz);
247247
#$response = "$tz - " . strftime($format);
248-
#$response = strftime($format);
249-
$response = $cur_locale;
248+
$response = strftime($format);
249+
#$response = $cur_locale;
250250
date_default_timezone_set($cur_timezone);
251251
runDebug(__FILE__, __FUNCTION__, __LINE__, "Date tag parsed. Returning $response", 4);
252252
return $response;

0 commit comments

Comments
 (0)