Relative time is not correct #3699
Labels
backlog
Out of scope for the current iteration but it will be evaluated in a future release.
Bot Services
Required for internal Azure reporting. Do not delete. Do not change color.
bug
Indicates an unexpected problem or an unintended behavior.
customer-replied-to
Required for internal reporting. Do not delete.
customer-reported
Required for internal Azure reporting. Do not delete.
ExemptFromDailyDRIReport
exempt from daily DRI report
front-burner
needs-scheduling
needs-team-attention
p1
Painful if we don't fix, won't block releasing
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
Expected behavior
When the activity is related to the day before the current day, it should be shown as "yesterday".
[Bug]
The text was updated successfully, but these errors were encountered: