v3
This commit is contained in:
parent
3f51b05a1a
commit
b4086ff8f9
6 changed files with 42 additions and 71 deletions
|
@ -3175,7 +3175,22 @@ const app = new Vue({
|
|||
ipcRenderer.send('setFullScreen', false);
|
||||
app.appMode = 'player';
|
||||
}
|
||||
}
|
||||
},
|
||||
formatTimezoneOffset : (e=new Date)=>{
|
||||
let leadingZeros = (e,s=2)=>{
|
||||
let n = "" + e;
|
||||
for (; n.length < s; )
|
||||
n = "0" + n;
|
||||
return n
|
||||
}
|
||||
|
||||
const s = e.getTimezoneOffset()
|
||||
, n = Math.floor(Math.abs(s) / 60)
|
||||
, d = Math.round(Math.abs(s) % 60);
|
||||
let h = "+";
|
||||
return 0 !== s && (h = s > 0 ? "-" : "+"),
|
||||
`${h}${leadingZeros(n, 2)}:${leadingZeros(d, 2)}`
|
||||
},
|
||||
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue