Has anyone succeed to fix the date/time fromat handling in ProgramE?
Php is capable of that, I don't know why ProgramE variant is limited to just a long date format result when you ask about a day, a month or a year (all the other AIML interpreters don't seem to have this limitation).
After going through the hardcores of ProgramN and ProgramD trying to figure out how they did it, I realized they didn't use php at all, so the patch won't apply.
I've tried a bit to change the getftime() function but I don't know how to get the attribute (which is entered in the AIML 1.0.1 set templates like <date format="%B"/>).
Actually, how do I get the value "%B" from the bot_dstore table (or from the template array), so I can pass it to the functions bellow:
return getfdate($date_format); // this is where I need to get the "%B" value
Then, in util.php (suppose $date_format is "%B")
return strftime($date_format,strtotime(date('D, d M Y H:i:s')));
Can someone tell me how do I get the value %B in respond.php file (handlenode function) so I can easily pass it to util.php getfdate?
I tried $xmlnode["attributes"] and a few other similar things, but all I got where "Array" in output.
Any idea would be appreciated!
PS: Anne? Any plans for a new version, now that php5/mysql5 and utf-8 are out and become so broad around?