TT#39930 Issues timestamp convs for Chrome/Safari

Fixes Safari issue. Does not fix the "chrome browserstack issue",
which turned out to be a timezone/systemtime issue and occured
because the browserstack session had different timezone.

Propose to tackle timezone/systemtime handling in separate story.

Change-Id: I892b888b929df21de04bf06626c3d404c34375e3
changes/60/22460/3
raxelsen 7 years ago
parent dbea287fdc
commit 1b7477774f

@ -12,7 +12,7 @@ export default function(value) {
export function smartTime($date, $today) {
let today = $today || new Date();
let date = new Date($date);
let date = moment($date, 'YYYY-MM-DD HH:mm:SS').toDate();
let diffSeconds = Math.floor((today.getTime() - date.getTime()) / 1000);
let diffMinutes = Math.floor(diffSeconds / 60);
let momentDate = moment(date);

Loading…
Cancel
Save