diff --git a/src/database.c b/src/database.c
index 980efcd4c8d9a335680e52130136f10d8a46a155..863829d8b816bd6954572c19a24c65720f3e6003 100644
--- a/src/database.c
+++ b/src/database.c
@@ -1009,7 +1009,6 @@ static int apk_db_scriptdb_write(struct apk_database *db, struct apk_ostream *os
 	char filename[256];
 	apk_blob_t bfn;
 	int r, i;
-	time_t now = time(NULL);
 
 	if (IS_ERR(os)) return PTR_ERR(os);
 
@@ -1024,7 +1023,6 @@ static int apk_db_scriptdb_write(struct apk_database *db, struct apk_ostream *os
 				.name = filename,
 				.size = ipkg->script[i].len,
 				.mode = 0755 | S_IFREG,
-				.mtime = now,
 			};
 			/* The scripts db expects file names in format:
 			 * pkg-version.<hexdump of package checksum>.action */