summaryrefslogtreecommitdiff
path: root/src/add.c
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 /src/add.c
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
Diffstat (limited to 'src/add.c')
-rw-r--r--src/add.c2
1 files changed, 1 insertions, 1 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();