Update Helpers.php

This commit is contained in:
Daniel Supernault 2025-01-03 23:18:29 -07:00
parent 12b400707f
commit 823d756781
No known key found for this signature in database
GPG key ID: 23740873EE6F76A1

View file

@ -372,7 +372,7 @@ class Helpers
try { try {
$date = Carbon::parse($timestamp); $date = Carbon::parse($timestamp);
$now = Carbon::now(); $now = Carbon::now();
$tenYearsAgo = $now->copy()->subYears(10); $tenYearsAgo = $now->copy()->subYears(20);
$isMoreThanTenYearsOld = $date->lt($tenYearsAgo); $isMoreThanTenYearsOld = $date->lt($tenYearsAgo);
$tomorrow = $now->copy()->addDay(); $tomorrow = $now->copy()->addDay();
$isMoreThanOneDayFuture = $date->gt($tomorrow); $isMoreThanOneDayFuture = $date->gt($tomorrow);