commit
7cf5fb88e9
|
@ -60,6 +60,9 @@ FormatedData formatValue(GwApi::BoatValue *value, CommonData &commondata){
|
|||
else if(String(dateFormat) == "US"){
|
||||
snprintf(buffer,bsize,"%02d/%02d/%04d",parts.tm_mon+1,parts.tm_mday,parts.tm_year+1900);
|
||||
}
|
||||
else if(String(dateFormat) == "ISO"){
|
||||
snprintf(buffer,bsize,"%04d-%02d-%02d",parts.tm_year+1900,parts.tm_mon+1,parts.tm_mday);
|
||||
}
|
||||
else{
|
||||
snprintf(buffer,bsize,"%02d.%02d.%04d",parts.tm_mday,parts.tm_mon+1,parts.tm_year+1900);
|
||||
}
|
||||
|
|
|
@ -251,11 +251,12 @@
|
|||
"label": "Date Format",
|
||||
"type": "list",
|
||||
"default": "DE",
|
||||
"description": "Date format [DE|GB|US] DE: 31.12.2022, GB: 31/12/2022, US: 12/31/2022",
|
||||
"description": "Date format [DE|GB|US|ISO] DE: 31.12.2022, GB: 31/12/2022, US: 12/31/2022, ISO: 2022-12-31",
|
||||
"list": [
|
||||
"DE",
|
||||
"GB",
|
||||
"US"
|
||||
"US",
|
||||
"ISO"
|
||||
],
|
||||
"category": "OBP60 Units",
|
||||
"capabilities": {
|
||||
|
|
Loading…
Reference in New Issue