add: always use UTC for virtual package versions

cute-signatures
Max Rees 2019-07-09 01:45:24 -05:00 committed by Natanael Copa
parent f8d5aa58f9
commit 800488a1ef
2 changed files with 1 additions and 2 deletions

View File

@ -90,7 +90,7 @@ static struct apk_package *create_virtual_package(struct apk_database *db, struc
time_t now = apk_time();
pid_t pid = getpid();
localtime_r(&now, &tm);
gmtime_r(&now, &tm);
strftime(ver, sizeof ver, "%Y%m%d.%H%M%S", &tm);
virtpkg = apk_pkg_new();

View File

@ -4,7 +4,6 @@ get_block() {
awk '/^@'$1'/{p=1;next} /^@/{p=0} p{print}'
}
export TZ=UTC
APK_TEST="../src/apk-test"
TEST_TO_RUN="$@"