File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -379,7 +379,7 @@ ip_info4() {
379379 org=$( python tools.py geoip org)
380380 countryCode=$( python tools.py ipip country_code)
381381 region=$( python tools.py ipip province)
382- if [ ! city ]; then
382+ if [ -z " $ city" ]; then
383383 city=${region}
384384 fi
385385
@@ -540,13 +540,8 @@ print_end_time() {
540540 # echo $(date +%Y-%m-%d" "%H:%M:%S)
541541 printf ' \n' | tee -a $log
542542 # 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)
546544
547- if [[ $( echo $bj_time | grep " html" ) ]]; then
548- bj_time=$( date -u +%Y-%m-%d" " %H:%M:%S -d ' +8 hours' )
549- fi
550545 echo " Timestamp : $bj_time GMT+8" | tee -a $log
551546 # echo " Finished!"
552547 echo " Results : $log "
You can’t perform that action at this time.
0 commit comments