This commit is contained in:
2021-09-16 19:01:01 +00:00
parent 2c508ccde3
commit 5b1e115d46
2 changed files with 22 additions and 13 deletions

View File

@@ -75,17 +75,7 @@ export default {
getHour12() {
return window.$gz.store.state.userOptions.hour12;
},
//////////////////////////////////////////////////
// Get the user's chosen / auto time zone offset
//
getTZOffset(timeZoneName) {
if (!timeZoneName) {
timeZoneName = this.getResolvedTimeZoneName();
}
let dtNow = window.$gz.DateTime.local();
var rezoned = dtNow.setZone(timeZoneName);
return rezoned.offset;
},
// ///////////////////////////////////////////
// // Convert timestamp utc epoch value
// // to local timestamp epoch value