Commit 1649959 1 parent 88dd91d commit 1649959 Copy full SHA for 1649959
File tree 1 file changed +2
-7
lines changed
1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -379,7 +379,7 @@ ip_info4() {
379
379
org=$( python tools.py geoip org)
380
380
countryCode=$( python tools.py ipip country_code)
381
381
region=$( python tools.py ipip province)
382
- if [ ! city ]; then
382
+ if [ -z " $ city" ]; then
383
383
city=${region}
384
384
fi
385
385
@@ -540,13 +540,8 @@ print_end_time() {
540
540
# echo $(date +%Y-%m-%d" "%H:%M:%S)
541
541
printf ' \n' | tee -a $log
542
542
# utc_time=$(date -u '+%F %T')
543
- # bj_time=$(date +%Y-%m-%d" "%H:%M:%S -d '+8 hours')
544
- bj_time=$( curl -s http://cgi.im.qq.com/cgi-bin/cgi_svrtime)
545
- # utc_time=$(date +"$bj_time" -d '-8 hours')
543
+ bj_time=$( TZ=Asia/Shanghai date +%Y-%m-%d" " %H:%M:%S)
546
544
547
- if [[ $( echo $bj_time | grep " html" ) ]]; then
548
- bj_time=$( date -u +%Y-%m-%d" " %H:%M:%S -d ' +8 hours' )
549
- fi
550
545
echo " Timestamp : $bj_time GMT+8" | tee -a $log
551
546
# echo " Finished!"
552
547
echo " Results : $log "
You can’t perform that action at this time.
0 commit comments