File obs-server-2.9-0047-backend-createrelease_debian-use-utc-instead-of-loca.patch of Package obs-server
From 5f0b1442ad257842319601c9507111f1b37045c1 Mon Sep 17 00:00:00 2001
From: Michael Schroeder <mls@suse.de>
Date: Thu, 25 Apr 2019 13:11:36 +0200
Subject: [PATCH] [backend] createrelease_debian: use utc instead of local time
---
src/backend/bs_publish | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/backend/bs_publish b/src/backend/bs_publish
index 16e1fce591..91ac62bc38 100755
--- a/src/backend/bs_publish
+++ b/src/backend/bs_publish
@@ -748,8 +748,8 @@ sub createrelease_debian {
my ($extrep, $projid, $repoid, $data, $options) = @_;
my $obsname = $BSConfig::obsname || 'build.opensuse.org';
- my $date = POSIX::ctime(time());
- $date =~ s/\n//m;
+ my $date = POSIX::asctime(gmtime(time()));
+ chomp $date;
my @debarchs = map {Build::Deb::basearch($_)} @{$data->{'repoinfo'}->{'arch'} || []};
my $archs = join(' ', @debarchs);
--
2.25.4