Did you know Bot Libre also provides free hosted forums for your own website or mobile app?
Bot Libre Forum

chatbot is not saying the correct time

by bobred posted Jun 27 2018, 12:40

pioyu2 chatbot is not telling me the correct time.here is the aiml script I am using.timer time.txt


by admin posted Jun 28 2018, 7:31
What response do you get from the bot, and what response do you expect?

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 514, today: 1, week: 6, month: 70

by bobred posted Jun 28 2018, 9:05

i want pioyu2 chatbot to say the time in texas it is currently.

it's response to the question what time it is is the locale time is:9: AM. when it is actually 7 am.


Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 484, today: 0, week: 3, month: 67

by admin posted Jul 3 2018, 11:09

The local is not the timezone, it just affects how the date is printed.

To set the timezone of the date use the "timezone" attribute set to the GMT hour offset.

<date format="%I: %p" timezone="+2" locale="en_US"/>

You can also use Self to print a date, even from AIML,

<template>The local time is: <self>Date.setTimeZone(Date.time(), "EST")</self></template>

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 534, today: 0, week: 1, month: 61

Id: 22624204
Tags: aiml
Posted: Jun 27 2018, 12:40
Replies: 3
Views: 854, today: 1, week: 6, month: 102
I'm sure
Flag post as offensive, or in violation of site rules