Skip to content

Commit accfd06

Browse files
xh3n1Sam Tuke
authored andcommitted
Use %a format for comparing days
Signed-off-by: Xheni Myrtaj <[email protected]>
1 parent 05a3a91 commit accfd06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public_html/lists/admin/updateLib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function lastTimeCheck()
8484
$currentTimeFormattedDateTime = new DateTime($currentTime);
8585

8686
$interval = $currentTimeFormattedDateTime->diff($lastTimeFormattedDateTime);
87-
$dDiff = $interval->format('%d');
87+
$dDiff = $interval->format('%a');
8888

8989
if ($dDiff >= '3') {
9090

0 commit comments

Comments
 (0)