# Allowing my chatbot to tell time in AIML (Pandorabots)

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?