mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Update timestamp formats
This commit is contained in:
parent
b50e0533eb
commit
2dcff51125
@ -925,6 +925,12 @@
|
|||||||
"jsonata": "expression",
|
"jsonata": "expression",
|
||||||
"env": "env variable",
|
"env": "env variable",
|
||||||
"cred": "credential"
|
"cred": "credential"
|
||||||
|
},
|
||||||
|
"date": {
|
||||||
|
"format": {
|
||||||
|
"timestamp": "milliseconds since epoch",
|
||||||
|
"object": "JavaScript Date Object"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"editableList": {
|
"editableList": {
|
||||||
|
@ -414,11 +414,11 @@
|
|||||||
icon:"fa fa-clock-o",
|
icon:"fa fa-clock-o",
|
||||||
options:[
|
options:[
|
||||||
{
|
{
|
||||||
label: 'timestamp',
|
label: 'milliseconds since epoch',
|
||||||
value: ''
|
value: ''
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'ISO 8601',
|
label: 'YYYY-MM-DDTHH:mm:ss.sssZ',
|
||||||
value: 'iso'
|
value: 'iso'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -670,6 +670,10 @@
|
|||||||
allOptions.flow.options = contextStoreOptions;
|
allOptions.flow.options = contextStoreOptions;
|
||||||
allOptions.global.options = contextStoreOptions;
|
allOptions.global.options = contextStoreOptions;
|
||||||
}
|
}
|
||||||
|
// Translate timestamp options
|
||||||
|
allOptions.date.options.forEach(opt => {
|
||||||
|
opt.label = RED._("typedInput.date.format." + (opt.value || 'timestamp'), {defaultValue: opt.label})
|
||||||
|
})
|
||||||
}
|
}
|
||||||
nlsd = true;
|
nlsd = true;
|
||||||
var that = this;
|
var that = this;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user