This commit is contained in:
2020-11-24 17:54:50 +00:00
parent 2e7a3f23ba
commit 6effcda8b6
4 changed files with 31 additions and 11 deletions

View File

@@ -178,6 +178,16 @@ export default {
.toISO(); //output as ISO 8601
},
///////////////////////////////////////////////
// UTC Now in api format
// to UTC and output as ISO 8601
// (used to set defaults)
//
nowUTC8601String() {
return window.$gz.DateTime.local()
.toUTC()
.toString();
},
///////////////////////////////////////////////
// Convert a utc date to local time zone
// and return date only portion only in iso 8601
// format (used by time and date picker components)