-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
Bot ServicesRequired for internal Azure reporting. Do not delete. Do not change color.Required for internal Azure reporting. Do not delete. Do not change color.ExemptFromDailyDRIReportexempt from daily DRI reportexempt from daily DRI reportbacklogOut of scope for the current iteration but it will be evaluated in a future release.Out of scope for the current iteration but it will be evaluated in a future release.bugIndicates an unexpected problem or an unintended behavior.Indicates an unexpected problem or an unintended behavior.customer-replied-toRequired for internal reporting. Do not delete.Required for internal reporting. Do not delete.customer-reportedRequired for internal Azure reporting. Do not delete.Required for internal Azure reporting. Do not delete.front-burnerneeds-schedulingneeds-team-attentionp1Painful if we don't fix, won't block releasingPainful if we don't fix, won't block releasing
Description
Screenshots
Labels are in Italian.
"Oggi" => "today"
All the messages, both from the user and the bot, have timestamp around 2th February 3:30 PM, whereas the screenshot was done at around 3th February 11:15 AM.
Version
Custom ReactJS webchat, created using the "botframework-webchat" 4.8.0 npm package
Describe the bug
Activities related to "yesterday" are marked as "today". For example, with current timestamp "3th February 11:15 AM", an activity with timestamp "2th February 3:30 PM" is showed as "today" in the webchat.
The reason is that in the "useRelativeTimeFormatter.js" file the logic is done with delta time within 24 hours, regardless the current day.
Steps to reproduce
- Go to the webchat
- Generate some activities
- Wait until the day after
- See the incorrect behavior
Expected behavior
When the activity is related to the day before the current day, it should be shown as "yesterday".
[Bug]
Metadata
Metadata
Assignees
Labels
Bot ServicesRequired for internal Azure reporting. Do not delete. Do not change color.Required for internal Azure reporting. Do not delete. Do not change color.ExemptFromDailyDRIReportexempt from daily DRI reportexempt from daily DRI reportbacklogOut of scope for the current iteration but it will be evaluated in a future release.Out of scope for the current iteration but it will be evaluated in a future release.bugIndicates an unexpected problem or an unintended behavior.Indicates an unexpected problem or an unintended behavior.customer-replied-toRequired for internal reporting. Do not delete.Required for internal reporting. Do not delete.customer-reportedRequired for internal Azure reporting. Do not delete.Required for internal Azure reporting. Do not delete.front-burnerneeds-schedulingneeds-team-attentionp1Painful if we don't fix, won't block releasingPainful if we don't fix, won't block releasing
