We are using react-intl intensively for internationalization. React-intl is internally using intl-relativeformat for calculating 'today' and 'yesterday'.
Intl-relativeformate incorrectly shows 'today' even if the datetime send to it was from yesterday for the following times.
file name : intl-relativeformat/src/diff.js
------------
var millisecond = round(to - from),
second = round(millisecond / 1000),
minute = round(second / 60),
hour = round(minute / 60),
day = round(hour / 24),
week = round(day / 7);
---------------
var millisecond = to - from,
second = millisecond / 1000,
minute = second / 60,
hour = minute / 60,
day = round(hour / 24),
week = round(day / 7);