Correction to "Format the relative date" task

This commit is contained in:
Sarratas 2019-07-23 22:53:57 +02:00 committed by GitHub
parent 6831c5e887
commit 66879ad407
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,6 +20,6 @@ alert( formatDate(new Date(new Date - 30 * 1000)) ); // "30 sec. ago"
alert( formatDate(new Date(new Date - 5 * 60 * 1000)) ); // "5 min. ago"
// yesterday's date like 31.12.2016, 20:00
// yesterday's date like 31.12.16, 20:00
alert( formatDate(new Date(new Date - 86400 * 1000)) );
```