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