mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Fixed spinner issue in inject node with non-hardcoded offset
This commit is contained in:
parent
4f56f36cde
commit
804dd67b4a
@ -150,7 +150,8 @@
|
|||||||
return Number( value );
|
return Number( value );
|
||||||
}
|
}
|
||||||
var p = value.split(":");
|
var p = value.split(":");
|
||||||
return ((Number(p[0])*60)+Number(p[1])+300)*60*1000;
|
var offset = new Date().getTimezoneOffset();
|
||||||
|
return (((Number(p[0])+1)*60)+Number(p[1])+offset)*60*1000;
|
||||||
}
|
}
|
||||||
return value;
|
return value;
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user