summaryrefslogtreecommitdiffstats
path: root/globals.pl
diff options
context:
space:
mode:
authormkanat%kerio.com <>2005-02-25 08:37:47 +0100
committermkanat%kerio.com <>2005-02-25 08:37:47 +0100
commit63dde60072374b2f7ef2f756d4ab9dff66669793 (patch)
tree294b30fddd43508bc9fa4d8c3c540ac4bbcd3c8c /globals.pl
parent32882b6e3513fa69185ea5b3d115e70b69ea5362 (diff)
downloadbugzilla-63dde60072374b2f7ef2f756d4ab9dff66669793.tar.gz
bugzilla-63dde60072374b2f7ef2f756d4ab9dff66669793.tar.xz
Bug 280500: Replace "DATE_FORMAT()" with Bugzilla::DB function call
Patch By Tomas Kopal <Tomas.Kopal@altap.cz> r=mkanat, a=myk
Diffstat (limited to 'globals.pl')
-rw-r--r--globals.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/globals.pl b/globals.pl
index f6f15566d..100c8fab6 100644
--- a/globals.pl
+++ b/globals.pl
@@ -971,7 +971,9 @@ sub GetLongDescriptionAsText {
my $result = "";
my $count = 0;
my $anyprivate = 0;
- my ($query) = ("SELECT profiles.login_name, DATE_FORMAT(longdescs.bug_when,'%Y.%m.%d %H:%i'), " .
+ my $dbh = Bugzilla->dbh;
+ my ($query) = ("SELECT profiles.login_name, " .
+ $dbh->sql_date_format('longdescs.bug_when', '%Y.%m.%d %H:%i') . ", " .
" longdescs.thetext, longdescs.isprivate, " .
" longdescs.already_wrapped " .
"FROM longdescs, profiles " .