formatting time (not working properly)

这个提交包含在:
HB9HIL 2023-10-27 12:07:30 +02:00
父节点 02dd5cce31
当前提交 fe640da777

查看文件

@ -652,10 +652,11 @@ $(".js-save-to-log").click(function () {
var callsign = item[2]; var callsign = item[2];
var rst_rcvd = item[7]; var rst_rcvd = item[7];
var rst_sent = item[6]; var rst_sent = item[6];
var start_date = var timeString = item[1]; // Example: "123000"
item[0].replace("-", "").replace("-", "") + // Formatting time in "12:30:00"
" " + var formattedTime = timeString.substring(0, 2) + ":" + timeString.substring(2, 4) + ":" + "00";
item[1].replace(":", "");
var start_date = item[0] + " " + formattedTime;
var band = item[4]; var band = item[4];
var mode = item[5]; var mode = item[5];
var freq_display = item[3]; var freq_display = item[3];
@ -672,9 +673,20 @@ $(".js-save-to-log").click(function () {
mode: mode, mode: mode,
freq_display: freq_display, freq_display: freq_display,
}, },
success: function (result) {}, success: function (debugCreateQSO) {
console.log("QSO Data:", {
callsign: callsign,
rst_rcvd: rst_rcvd,
rst_sent: rst_sent,
start_date: start_date,
band: band,
mode: mode,
freq_display: freq_display,
});
}
}); });
}); });
clearSession(); clearSession();
BootstrapDialog.alert({ BootstrapDialog.alert({
title: "QSO logged", title: "QSO logged",