Commit 54c476a9 authored by Franco Fichtner's avatar Franco Fichtner

insight: details view ISO date selection

PR: https://forum.opnsense.org/index.php?topic=3884.0
parent 7cc21277
......@@ -575,7 +575,7 @@ POSSIBILITY OF SUCH DAMAGE.
from_date_ts = (date_begin - (24*60*60*1000 * i)) / 1000;
to_date_ts = parseInt((date_end - (24*60*60*1000 * i)) / 1000);
tmp_date = new Date(from_date_ts*1000);
tmp = tmp_date.getDate() + '/' + (tmp_date.getMonth()+1) + '/' + tmp_date.getFullYear();
tmp = tmp_date.toISOString().substr(0, 10);
if (i < 62) {
$("#date_detail_from").append($("<option/>").val(from_date_ts).text(tmp));
$("#date_detail_to").append($("<option/>").val(to_date_ts).text(tmp));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment