mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 04:38:28 +00:00
Reuse the dateformat variable
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
@@ -35,7 +35,7 @@ $(function () {
|
||||
daterange = $("#querytime").daterangepicker(
|
||||
{
|
||||
timePicker: true, timePickerIncrement: 15,
|
||||
locale: { format: "MMMM Do YYYY, HH:mm" },
|
||||
locale: { format: dateformat },
|
||||
startDate: start__, endDate: end__,
|
||||
ranges: {
|
||||
"Today": [moment().startOf("day"), moment()],
|
||||
@@ -342,7 +342,7 @@ $(document).ready(function() {
|
||||
|
||||
if(instantquery)
|
||||
{
|
||||
daterange.val(start__.format("MMMM Do YYYY, HH:mm") + " - " + end__.format("MMMM Do YYYY, HH:mm"));
|
||||
daterange.val(start__.format(dateformat) + " - " + end__.format(dateformat));
|
||||
}
|
||||
} );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user