mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Add js date option to inject
This commit is contained in:
@@ -638,6 +638,8 @@ function evaluateNodeProperty(value, type, node, msg, callback) {
|
||||
} else if (type === 'date') {
|
||||
if (!value) {
|
||||
result = Date.now();
|
||||
} else if (value === 'object') {
|
||||
result = new Date()
|
||||
} else if (value === 'iso') {
|
||||
result = (new Date()).toISOString()
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user