]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 93037 - use YYYY-MM-DD HH:MM formatting for attachment dates
authorbbaetz%student.usyd.edu.au <>
Wed, 23 Jan 2002 08:24:31 +0000 (08:24 +0000)
committerbbaetz%student.usyd.edu.au <>
Wed, 23 Jan 2002 08:24:31 +0000 (08:24 +0000)
r=gerv,myk

Attachment.pm
Bugzilla/Attachment.pm

index acfa52f63026833f35c43faceaefd65c88615ede..4b4b19ec326a005b8e1527dd338c550cd537587c 100644 (file)
@@ -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.
index acfa52f63026833f35c43faceaefd65c88615ede..4b4b19ec326a005b8e1527dd338c550cd537587c 100644 (file)
@@ -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.