Skip to content

Commit 0ade414

Browse files
authored
Merge pull request #1181 from Sarratas/patch-2
Correction to "Format the relative date" task
2 parents 6831c5e + 66879ad commit 0ade414

File tree

1 file changed

+1
-1
lines changed
  • 1-js/05-data-types/11-date/8-format-date-relative

1 file changed

+1
-1
lines changed

1-js/05-data-types/11-date/8-format-date-relative/task.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ alert( formatDate(new Date(new Date - 30 * 1000)) ); // "30 sec. ago"
2020

2121
alert( formatDate(new Date(new Date - 5 * 60 * 1000)) ); // "5 min. ago"
2222

23-
// yesterday's date like 31.12.2016, 20:00
23+
// yesterday's date like 31.12.16, 20:00
2424
alert( formatDate(new Date(new Date - 86400 * 1000)) );
2525
```

0 commit comments

Comments
 (0)