2
$\begingroup$

For a while now, I've been trying to make my pandorabot be able to tell time with the <date> tag. The problem is, whenever I try to set the timezone format variable, it defaults back to the date. I took a look at this readme page that I managed to find, but the only useful information I got from it was this:

"If you don't specify a format you'll just get the date using the default format for the particular locale."

From here, I deduced that this must be the problem that I have been having. However, the page also gave this example: <date locale="fr_FR" timezone="-1" format="%c"/>

As you can see, the timezone format variable is clearly being used, so it must be a valid format.

I couldn't find any more useful information.

I've tried many things, including downgrading the AIML version and changing the order of the format variables, but the only thing that got me even remotely close was taking out the timezone variable altogether. And, that's where I am now.

The problem is, It only shows the default time for the en_US locale, not the correct local time.

Here's what I have so far:

<category> 
<pattern>WHAT TIME IS IT</pattern> 
<template>The local time is: <date format="%I:%M %p" locale="en_US"/> </template>
</category>

Can anyone help?

$\endgroup$
0
$\begingroup$

just push it by using HTML tag into the aimlenter image description here

$\endgroup$
-1
$\begingroup$

You don't need "%M" as it is already been handled by "%I"

$\endgroup$
  • $\begingroup$ If I try to eliminate %M, only hours will be shown. $\endgroup$ – Rowan Lerowsky Oct 6 '17 at 18:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.