We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5796bf0 commit df05069Copy full SHA for df05069
superbench.sh
@@ -540,13 +540,7 @@ print_end_time() {
540
#echo $(date +%Y-%m-%d" "%H:%M:%S)
541
printf '\n' | tee -a $log
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')
546
-
547
- if [[ $(echo $bj_time | grep "html") ]]; then
548
- bj_time=$(date -u +%Y-%m-%d" "%H:%M:%S -d '+8 hours')
549
- fi
+ bj_time=$(TZ=Asia/Shanghai date +%Y-%m-%d" "%H:%M:%S)
550
echo " Timestamp : $bj_time GMT+8" | tee -a $log
551
#echo " Finished!"
552
echo " Results : $log"
0 commit comments