From 313e54befe26f6eb7ef381fa1dd5e0b86070b564 Mon Sep 17 00:00:00 2001
From: meskio <meskio@torproject.org>
Date: Mon, 13 Jan 2025 19:48:20 +0100
Subject: [PATCH] CI: use /etc/localtime instead of /etc/timezone

/etc/timezone is a legacy debian specific file. Let's use localtime.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1038849

* Related: #40414
---
 .gitlab-ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4fd85e01..d73bc2b4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -14,7 +14,7 @@ variables:
 .apt-template: &apt-template
 - export LC_ALL=C.UTF-8
 - export DEBIAN_FRONTEND=noninteractive
-- echo Etc/UTC > /etc/timezone
+- ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime
 - echo 'quiet "1";'
        'APT::Install-Recommends "0";'
        'APT::Install-Suggests "0";'
-- 
GitLab