This commit is contained in:
2020-02-07 00:35:39 +00:00
parent 0e0e86c4ce
commit 99d37a2d5b
7 changed files with 17 additions and 85 deletions

View File

@@ -224,7 +224,7 @@ export default {
case "time":
case "datetime":
//can it be parsed into a date using the same library as the components use?
if (!window.$gz.dayjs(ret).isValid()) {
if (!window.$gz.DateTime.fromISO(ret).isValid()) {
ret = null;
}
break;

View File

@@ -97,14 +97,6 @@ export default {
this.hour12
);
},
// formatDate() {
// return this.value
// ? window.$gz.dayjs
// .utc(this.value)
// .add(window.$gz.locale.format().timeZoneOffset, "hour")
// .format(window.$gz.locale.format().shortDate)
// : "";
// },
formatTime() {
return window.$gz.locale.utcDateToShortTimeLocalized(
this.value,