Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
779c0c0c
Commit
779c0c0c
authored
Jan 23, 2002
by
bbaetz%student.usyd.edu.au
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 93037 - use YYYY-MM-DD HH:MM formatting for attachment dates
r=gerv,myk
parent
8603948d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
Attachment.pm
Attachment.pm
+4
-3
Attachment.pm
Bugzilla/Attachment.pm
+4
-3
No files found.
Attachment.pm
View file @
779c0c0c
...
...
@@ -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 $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.
...
...
Bugzilla/Attachment.pm
View file @
779c0c0c
...
...
@@ -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 $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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment