الترقية إلى خدمة تجارية Bot Libre for Business فقط 99 سنت شهريا
Bot Libre Forum

chatbot is not saying the correct time

قبل bobred نشر 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: 241, today: 0, week: 0, month: 6

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: 233, today: 0, week: 0, month: 5

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: 227, today: 0, week: 1, month: 9

معرف: 22624204
Tags: aiml
نشر: Jun 27 2018, 12:40
الردود: 3
الآراء: 367, اليوم: 1, الأسبوع: 2, الشهر: 13
أنا متأكد
العلم بعد اعتداء أو انتهاك قوانين الموقع