|
|
@ -697,9 +697,8 @@ function App() { |
|
|
|
const interval = setInterval(()=>{ |
|
|
|
const interval = setInterval(()=>{ |
|
|
|
if (nav==="main"){ |
|
|
|
if (nav==="main"){ |
|
|
|
var date=new Date() |
|
|
|
var date=new Date() |
|
|
|
var earthH=date.getHours(),earthM=date.getMinutes(),earthS=date.getSeconds() |
|
|
|
var earthTime=Math.round(Date.now()/1000) |
|
|
|
var earthTime=Number(earthH)*3600+Number(earthM)*60+Number(earthS) |
|
|
|
var eorzeanTime=earthTime*20.571428571428571428571428571429 |
|
|
|
var eorzeanTime=earthTime*20.571428571428571428571428571429+49380 |
|
|
|
|
|
|
|
var eorzeanH=Math.floor(eorzeanTime/3600)%24 |
|
|
|
var eorzeanH=Math.floor(eorzeanTime/3600)%24 |
|
|
|
var eorzeanM=Math.floor(eorzeanTime/60)%60 |
|
|
|
var eorzeanM=Math.floor(eorzeanTime/60)%60 |
|
|
|
var eorzeanS=Math.floor(eorzeanTime)%60 |
|
|
|
var eorzeanS=Math.floor(eorzeanTime)%60 |
|
|
|