This commit is contained in:
2021-06-09 15:42:29 +00:00
parent fd64cb9b94
commit e36144ce2c
2 changed files with 43 additions and 15 deletions

View File

@@ -182,11 +182,12 @@ export default {
let theHours = 0;
let theMinutes = 0;
let theSeconds = 0;
let ret = "";
if (value == null) {
return "";
return ret;
} else {
let work = vm.value.split(":");
let work = value.split(":");
//has days?
if (work[0].includes(".")) {
let dh = work[0].split(".");
@@ -203,8 +204,30 @@ export default {
} else {
theSeconds = Number(work[2]);
}
if (theDays != 0) {
ret += theDays + " " + window.$gz.translation.get("TimeSpanDays") + " ";
}
if (theHours != 0) {
ret +=
theHours + " " + window.$gz.translation.get("TimeSpanHours") + " ";
}
if (theMinutes != 0) {
ret +=
theMinutes +
" " +
window.$gz.translation.get("TimeSpanMinutes") +
" ";
}
if (theSeconds != 0) {
ret +=
theSeconds +
" " +
window.$gz.translation.get("TimeSpanSeconds") +
" ";
}
return ret;
}
todo: finish this then move on to the UI part and jam this in
},
///////////////////////////////////////////////
// Convert a utc date to local time zone