Skip to content

Commit 27d9b80

Browse files
fixing due date issue
1 parent aaaaacb commit 27d9b80

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

overdue.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@
115115

116116
$j= count+($c++);
117117

118-
$start=date_format(date_create($row['duedate']), 'Y/m/d')."<br>";
118+
$start=date_format(date_create($row['due_date']), 'Y/m/d')."<br>";
119119
$today=date_format(date_create(date("Y/m/d")), 'Y/m/d')."<br>";
120120

121121
$endTimeStamp = strtotime(date("Y/m/d"));
122-
$startTimeStamp = strtotime($row['duedate']);
122+
$startTimeStamp = strtotime($row['due_date']);
123123
$timeDiff = abs($endTimeStamp - $startTimeStamp);
124124

125125
$numberDays = $timeDiff/86400; // 86400 seconds in one day
@@ -133,7 +133,7 @@
133133
<td><?php echo $row['card_no']; ?></td>
134134
<td><?php echo $book['title']; ?></td>
135135
<td><?php echo $stud['fname']."&nbsp".$stud['lname']; ?></td>
136-
<td><?php echo date_format(date_create($row['duedate']), 'F d, Y'); ?></td>
136+
<td><?php echo date_format(date_create($row['due_date']), 'F d, Y'); ?></td>
137137
<td>
138138
<input type="hidden" name="countdays" value="<?php echo $numberDays; ?>">
139139
<?php echo $numberDays; ?></td>

0 commit comments

Comments
 (0)