From: dondelelcaro Date: Mon, 15 Sep 2008 20:22:20 +0000 (+0000) Subject: * use strftime on the date X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;ds=sidebyside;h=b1c56270ef9a315b7b586b5ae774d7153c95518c;p=infobot.git * use strftime on the date git-svn-id: https://svn.code.sf.net/p/infobot/code/branches/don/dpkg@1850 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/src/Modules/DebianExtra.pl b/src/Modules/DebianExtra.pl index 0371711..98668e6 100644 --- a/src/Modules/DebianExtra.pl +++ b/src/Modules/DebianExtra.pl @@ -110,7 +110,8 @@ sub do_id($) { $bug->{severity} =~ s/^(.).+$/$1/; $bug->{package} = $result->{package}; $bug->{reporter} = $result->{submitter}; - $bug->{date} = $result->{date}; + use POSIX; + $bug->{date} = POSIX::strftime(q(%a, %d %b %Y %H:%M:%S UTC),gmtime($result->{date})); $bug->{tags} = $result->{keywords}; $bug->{done} = defined $result->{done} && length($result->{done}) > 0; $bug->{merged_with} = $result->{mergedwith};