+ 进样序列修复某些情况下时间计算错误的问题

This commit is contained in:
2022-07-12 21:51:52 +08:00
parent 6c790c98ba
commit 1e64b12386

View File

@@ -118,7 +118,7 @@
*/ */
function InjectionSequenceToDate(time, ptime, stime, num) { function InjectionSequenceToDate(time, ptime, stime, num) {
var t = InjectionSequence(time, ptime, stime, num); var t = InjectionSequence(time, ptime, stime, num);
var t_hour = Math.floor(t / 60); var t_hour = Math.floor(Math.abs(t) / 60);
var t_min = t % 60; var t_min = t % 60;
var date = new Date(); var date = new Date();
var dateAfter = new Date(date.getFullYear(), date.getMonth(), date.getDate(), var dateAfter = new Date(date.getFullYear(), date.getMonth(), date.getDate(),