¿Sabía usted Bot Libre también ofrece conexión alojado foros para su propio sitio web o una aplicación móvil?
Bot Libre Forum

chatbot is not saying the correct time

por bobred publicado 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: 262, today: 0, week: 1, month: 1

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: 252, today: 1, week: 1, month: 1

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: 250, today: 0, week: 2, month: 2

Id: 22624204
Etiquetas: aiml
Publicado: Jun 27 2018, 12:40
Respuestas: 3
Vistas: 419, hoy: 2, la semana: 5, mes: 5
Estoy seguro de que
Bandera post ofensivos, o en violación de las reglas del sitio