Host your own bot platform with the Bot Libre Enterprise Bot Platform

** Server is current under maintenance, any changes will be lost **

Bot Libre Forum : chatbot is not saying the correct time

RE: chatbot is not saying the correct time

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>

Id: 22680861
Posted: Jul 3 2018, 11:09
Replies: 0
Views: 215, today: 2, week: 2, month: 4
I'm sure
Flag post as offensive, or in violation of site rules