This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user