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