You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it necessary to include a reference date when creating a Context? @tgallice I assume you had reasons to put it there, but I feel this might not be useful for everyone.
I also reached out to wit.ai if fields like this, which in my case are not used, can confuse the bot model, but I did not receive any answer yet.
I would be glad if you can explain why it's there and if we generally need it.
publicfunction__construct($data = [])
{
// Ensure the refenre_date fieldif (empty($data['reference_date'])) {
$data['reference_date'] = new \DateTime();
}
if ($data['reference_date'] instanceof \DateTime) {
$data['reference_date'] = $data['reference_date']->format(DATE_ISO8601);
}
$this->data = $data;
}
The text was updated successfully, but these errors were encountered:
Ah ok. I think they dropped this in favor of configuring a default timezone on the app.
This is convenient, but complicates things if you deal with users who are in different timezones :-(
Is it necessary to include a reference date when creating a
Context
?@tgallice I assume you had reasons to put it there, but I feel this might not be useful for everyone.
I also reached out to wit.ai if fields like this, which in my case are not used, can confuse the bot model, but I did not receive any answer yet.
I would be glad if you can explain why it's there and if we generally need it.
The text was updated successfully, but these errors were encountered: