Feature: Replace old date range to Date Range Picker JS for better date from/to handling

This commit is contained in:
johnnyq
2025-10-20 18:04:00 -04:00
parent 10c89ebf73
commit ab77705ca2
15 changed files with 206 additions and 351 deletions

View File

@@ -98,9 +98,13 @@ if ($_GET['canned_date'] == "custom" && !empty($_GET['dtf'])) {
} elseif ($_GET['canned_date'] == "lastyear") {
$dtf = date('Y-m-d', strtotime("first day of january last year"));
$dtt = date('Y-m-d', strtotime("last day of december last year"));
}elseif (isset($_GET['canned_date']) && $_GET['canned_date'] === "alltime") {
$dtf = '1970-01-01';
$dtt = '2099-12-31';
} else {
$dtf = "NULL";
$dtt = '2035-12-31';
// Fallback acts like all time
$dtf = '1970-01-01';
$dtt = '2099-12-31';
}
// Archived

View File

@@ -51,6 +51,7 @@ if (basename(dirname($_SERVER['REQUEST_URI'])) === 'guest') { ?>
<script src="/js/app.js"></script>
<script src="/js/ajax_modal.js"></script>
<script src="/js/confirm_modal.js"></script>
<script src="/js/date_filter.js"></script>
</body>
</html>