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