From 0d205a866320e477c037ec6d4a57eba7c26a6ccb Mon Sep 17 00:00:00 2001 From: Shuduo Sang Date: Mon, 29 Jun 2020 20:05:19 +0800 Subject: [PATCH] another way to set timezone --- .travis.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 95fc398486..2a0aa6372b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -36,7 +36,7 @@ matrix: - psmisc before_script: - - sudo timedatectl set-timezone Asia/Harbin + - export TZ=Asia/Harbin - date - cd ${TRAVIS_BUILD_DIR} - mkdir debug @@ -152,7 +152,7 @@ matrix: - DESC="trusty/gcc-4.8 build" before_script: - - sudo timedatectl set-timezone Asia/Harbin + - export TZ=Asia/Harbin - date - cd ${TRAVIS_BUILD_DIR} - mkdir debug @@ -177,7 +177,7 @@ matrix: - cmake before_script: - - sudo timedatectl set-timezone Asia/Harbin + - export TZ=Asia/Harbin - date - cd ${TRAVIS_BUILD_DIR} - mkdir debug @@ -203,7 +203,7 @@ matrix: - cmake before_script: - - sudo timedatectl set-timezone Asia/Harbin + - export TZ=Asia/Harbin - date - cd ${TRAVIS_BUILD_DIR} - mkdir debug @@ -233,7 +233,7 @@ matrix: - DESC="trusty/gcc-4.8 build" before_script: - - sudo timedatectl set-timezone Asia/Harbin + - export TZ=Asia/Harbin - date - cd ${TRAVIS_BUILD_DIR} - mkdir debug