mirror of
https://github.com/okunze/Argon40-ArgonOne-Script.git
synced 2024-11-17 19:08:57 +01:00
Automated Change by GitHub Action
This commit is contained in:
parent
693b20a221
commit
7e0efe0de8
@ -8,9 +8,8 @@ echo "*************"
|
|||||||
# Check time if need to 'fix'
|
# Check time if need to 'fix'
|
||||||
NEEDSTIMESYNC=0
|
NEEDSTIMESYNC=0
|
||||||
LOCALTIME=$(date -u +%s%N | cut -b1-10)
|
LOCALTIME=$(date -u +%s%N | cut -b1-10)
|
||||||
GLOBALTIME=$(curl -s 'https://worldtimeapi.org/api/ip.txt' | grep unixtime | cut -b11-20)
|
GLOBALTIME=$(curl -s 'http://worldtimeapi.org/api/ip.txt' | grep unixtime | cut -b11-20)
|
||||||
TIMEDIFF=$((GLOBALTIME-LOCALTIME))
|
TIMEDIFF=$((GLOBALTIME-LOCALTIME))
|
||||||
echo "Local $LOCALTIME vs Global $GLOBALTIME $TIMEDIFF"
|
|
||||||
|
|
||||||
# about 26hrs, max timezone difference
|
# about 26hrs, max timezone difference
|
||||||
if [ $TIMEDIFF -gt 100000 ]
|
if [ $TIMEDIFF -gt 100000 ]
|
||||||
|
Loading…
Reference in New Issue
Block a user