Reuse the dateformat variable

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
XhmikosR
2019-12-16 13:36:58 +02:00
parent d966c7f534
commit 7d9e32bac6
2 changed files with 3 additions and 3 deletions

View File

@@ -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));
}
} );