summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Rees <maxcrees@me.com>2019-07-09 01:45:24 -0500
committerNatanael Copa <ncopa@alpinelinux.org>2019-11-18 16:46:57 +0100
commit800488a1ef171da1f9c178aa57e87b2aac68463b (patch)
tree8e00a56117a9501f6ca170265975fb6b0f1b640c
parentf8d5aa58f9af512f5f04a5fe4dce479709be32ba (diff)
downloadapk-tools-800488a1ef171da1f9c178aa57e87b2aac68463b.tar.gz
apk-tools-800488a1ef171da1f9c178aa57e87b2aac68463b.tar.bz2
apk-tools-800488a1ef171da1f9c178aa57e87b2aac68463b.tar.xz
apk-tools-800488a1ef171da1f9c178aa57e87b2aac68463b.zip
add: always use UTC for virtual package versions
-rw-r--r--src/add.c2
-rwxr-xr-xtest/solver.sh1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/add.c b/src/add.c
index 1fe2c7a..7e15f10 100644
--- a/src/add.c
+++ b/src/add.c
@@ -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();
diff --git a/test/solver.sh b/test/solver.sh
index 4e22f88..bc230c6 100755
--- a/test/solver.sh
+++ b/test/solver.sh
@@ -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="$@"