mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 09:13:02 +02:00
Issue #2035 Declare new parameters
We change min and max format date, now we expect `YYYY` or `YYYY-mm`or `YYYY-mm-dd`
This commit is contained in:
@@ -648,9 +648,9 @@ function advanced_filter_hide() {
|
||||
let months = [];
|
||||
|
||||
function getDateStr(date) {
|
||||
let date_arr = date.split(' ');
|
||||
let curr_month = months[parseInt(date_arr[0]) - 1];
|
||||
return curr_month + " " + date_arr[1]
|
||||
let date_arr = date.split('-');
|
||||
let curr_month = months[parseInt(date_arr[1]) - 1];
|
||||
return curr_month + " " + date_arr[0]
|
||||
}
|
||||
|
||||
function setupRegisterDates(register_dates) {
|
||||
|
||||
+1
-1
@@ -53,7 +53,7 @@ $result = pwg_query($query);
|
||||
$register_dates = array();
|
||||
while ($row = pwg_db_fetch_assoc($result))
|
||||
{
|
||||
$register_dates[] = $row['registration_month'].' '.$row['registration_year'];
|
||||
$register_dates[] = $row['registration_year'].'-'.sprintf('%02u', $row['registration_month']);
|
||||
}
|
||||
|
||||
$template->assign('register_dates', implode(',' , $register_dates));
|
||||
|
||||
Reference in New Issue
Block a user