Skip to content
This repository was archived by the owner on May 4, 2025. It is now read-only.

Commit a94fbf5

Browse files
committed
🐛 Bug fix (in not released version)
1 parent 4d4cf08 commit a94fbf5

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/app/controllers/UtilController.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -175,14 +175,14 @@ public static function muteCheck()
175175
return $res;
176176
}
177177

178-
// public static function calculate_days($date)
179-
// {
180-
// $now = new DateTime();
181-
// $date = new DateTime($date);
182-
// $interval = $now->diff($date);
183-
184-
// return (int) $interval->format("%a");
185-
// }
178+
public static function calculate_days($date)
179+
{
180+
$now = new DateTime();
181+
$date = new DateTime($date);
182+
$interval = $now->diff($date);
183+
184+
return (int) $interval->format("%a");
185+
}
186186

187187
public static function getavatar($uid)
188188
{

0 commit comments

Comments
 (0)