[Reproducible-commits] [debbindiff] 01/01: Set timezone to UTC when configuring locale

Jérémy Bobbio lunar at moszumanska.debian.org
Thu Jul 30 09:24:22 UTC 2015


This is an automated email from the git hooks/post-receive script.

lunar pushed a commit to branch master
in repository debbindiff.

commit 14b730adacb7470255317f42d522ca1c9436b237
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Thu Jul 30 09:23:20 2015 +0000

    Set timezone to UTC when configuring locale
    
    Some tools will output time based on the current timezone. To make
    the output consistent accross systems, let's just set the timezone
    to UTC.
---
 debbindiff/__init__.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/debbindiff/__init__.py b/debbindiff/__init__.py
index 6196a06..2f911de 100644
--- a/debbindiff/__init__.py
+++ b/debbindiff/__init__.py
@@ -106,6 +106,7 @@ def set_locale():
                 'LC_TELEPHONE', 'LC_MEASUREMENT', 'LC_IDENTIFICATION']:
         os.environ[var] = 'C'
     os.environ['LC_CTYPE'] = 'C.UTF-8'
+    os.environ['TZ'] = 'UTC'
 
 
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/debbindiff.git



More information about the Reproducible-commits mailing list