Skip to content

Commit 651ff82

Browse files
committed
fixes iliakan#252
1 parent cd001a7 commit 651ff82

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • 1-js/4-data-structures/11-datetime/6-get-seconds-today

1-js/4-data-structures/11-datetime/6-get-seconds-today/solution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function getSecondsToday() {
1010
var today = new Date(now.getFullYear(), now.getMonth(), now.getDate());
1111

1212
var diff = now - today; // разница в миллисекундах
13-
return Math.round(diff / 1000); // перевести в секунды
13+
return Math.floor(diff / 1000); // перевести в секунды
1414
}
1515

1616
alert( getSecondsToday() );

0 commit comments

Comments
 (0)