ops->jobs timestamp changed resolution from minutes to seconds
This commit is contained in:
@@ -243,7 +243,7 @@ TODO: 1 BETA DOCS:
|
|||||||
| |____| |____ _| |_| |____| |\ | | |
|
| |____| |____ _| |_| |____| |\ | | |
|
||||||
\_____|______|_____|______|_| \_| |_|
|
\_____|______|_____|______|_| \_| |_|
|
||||||
|
|
||||||
- 1 Server Jobs timestamp column doesn't show accurately enough, only resolves down to minutes
|
|
||||||
|
|
||||||
- 2 todo: put reset link somewhere in UI so user can just click on it, maybe the login form?? Or the About form? about->log form?
|
- 2 todo: put reset link somewhere in UI so user can just click on it, maybe the login form?? Or the About form? about->log form?
|
||||||
|
|
||||||
@@ -771,7 +771,7 @@ BUILD 8.0.0-beta.0.10 CHANGES OF NOTE
|
|||||||
- Updated IIS install docs to include section on application pool settings to prevent conflicting restart or shutdown of AyaNova
|
- Updated IIS install docs to include section on application pool settings to prevent conflicting restart or shutdown of AyaNova
|
||||||
- case 4070 see notes
|
- case 4070 see notes
|
||||||
- seeded data prices and costs all now rounded to 2 decimal places
|
- seeded data prices and costs all now rounded to 2 decimal places
|
||||||
|
- Server Jobs timestamp column modifed from hour and minutes to now show hour minutes seconds for more accurate display
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -174,7 +174,50 @@ export default {
|
|||||||
timeStyle: "short",
|
timeStyle: "short",
|
||||||
hour12: hour12
|
hour12: hour12
|
||||||
});
|
});
|
||||||
}, ///////////////////////////////////////////
|
},
|
||||||
|
///////////////////////////////////////////
|
||||||
|
// Turn a utc date into a displayable
|
||||||
|
// date and time with specific formats
|
||||||
|
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleString
|
||||||
|
//
|
||||||
|
utcDateToSpecifiedDateAndTimeLocalized(
|
||||||
|
value,
|
||||||
|
timeZoneName,
|
||||||
|
languageName,
|
||||||
|
hour12,
|
||||||
|
dateStyle,
|
||||||
|
timeStyle
|
||||||
|
) {
|
||||||
|
if (!value) {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
if (!timeZoneName) {
|
||||||
|
timeZoneName = this.getResolvedTimeZoneName();
|
||||||
|
}
|
||||||
|
if (!languageName) {
|
||||||
|
languageName = this.getResolvedLanguage();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!hour12) {
|
||||||
|
hour12 = this.getHour12();
|
||||||
|
}
|
||||||
|
|
||||||
|
//parse the date which is identified as utc ("2020-02-06T18:18:49.148011Z")
|
||||||
|
const parsedDate = new Date(value);
|
||||||
|
|
||||||
|
//is it a valid date?
|
||||||
|
if (!(parsedDate instanceof Date && !isNaN(parsedDate))) {
|
||||||
|
return "not valid";
|
||||||
|
}
|
||||||
|
|
||||||
|
return parsedDate.toLocaleString(languageName, {
|
||||||
|
timeZone: timeZoneName,
|
||||||
|
dateStyle: dateStyle,
|
||||||
|
timeStyle: timeStyle,
|
||||||
|
hour12: hour12
|
||||||
|
});
|
||||||
|
},
|
||||||
|
///////////////////////////////////////////
|
||||||
// Turn a utc date into a displayable
|
// Turn a utc date into a displayable
|
||||||
// short date
|
// short date
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -100,11 +100,13 @@ export default {
|
|||||||
const o = res.data[i];
|
const o = res.data[i];
|
||||||
ret.push({
|
ret.push({
|
||||||
id: i,
|
id: i,
|
||||||
created: window.$gz.locale.utcDateToShortDateAndTimeLocalized(
|
created: window.$gz.locale.utcDateToSpecifiedDateAndTimeLocalized(
|
||||||
o.created,
|
o.created,
|
||||||
this.timeZoneName,
|
this.timeZoneName,
|
||||||
this.languageName,
|
this.languageName,
|
||||||
this.hour12
|
this.hour12,
|
||||||
|
"short",
|
||||||
|
"medium"
|
||||||
),
|
),
|
||||||
status: await window.$gz.translation.translateStringWithMultipleKeysAsync(
|
status: await window.$gz.translation.translateStringWithMultipleKeysAsync(
|
||||||
o.statusText
|
o.statusText
|
||||||
|
|||||||
Reference in New Issue
Block a user