summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorbbaetz%student.usyd.edu.au <>2002-01-23 09:24:31 +0100
committerbbaetz%student.usyd.edu.au <>2002-01-23 09:24:31 +0100
commit779c0c0c410d04dcd4376fe6cb52a7fe0dad6344 (patch)
treed38061c26e07a72b9eda9e513d672fec8ede4ac9 /Bugzilla
parent8603948d4f06aafef40112d011d8a3f779455a7b (diff)
downloadbugzilla-779c0c0c410d04dcd4376fe6cb52a7fe0dad6344.tar.gz
bugzilla-779c0c0c410d04dcd4376fe6cb52a7fe0dad6344.tar.xz
Bug 93037 - use YYYY-MM-DD HH:MM formatting for attachment dates
r=gerv,myk
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Attachment.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/Bugzilla/Attachment.pm b/Bugzilla/Attachment.pm
index acfa52f63..4b4b19ec3 100644
--- a/Bugzilla/Attachment.pm
+++ b/Bugzilla/Attachment.pm
@@ -73,9 +73,10 @@ sub list
my %a;
($a{'attachid'}, $a{'date'}, $a{'contenttype'}, $a{'description'}, $a{'ispatch'}, $a{'isobsolete'}) = &::FetchSQLData();
- # Format the attachment's creation/modification date into something readable.
- if ($a{'date'} =~ /^(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)$/) {
- $a{'date'} = "$3/$4/$2&nbsp;$5:$6";
+ # Format the attachment's creation/modification date into a standard
+ # format (YYYY-MM-DD HH:MM)
+ if ($a{'date'} =~ /^(\d\d\d\d)(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)$/) {
+ $a{'date'} = "$1-$2-$3 $4:$5";
}
# Retrieve a list of status flags that have been set on the attachment.