summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Chart.pm
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-06-20 16:55:39 +0200
committerlpsolit%gmail.com <>2006-06-20 16:55:39 +0200
commit7f446ae898dc9f9fe8d97fdd01f0e39ba7676867 (patch)
treef6c6d8a3daa4b8244498c9b924a70bdaa5e324fd /Bugzilla/Chart.pm
parent5ffe3d31dde3c11525ff09ce17e4b0d730e5e2fd (diff)
downloadbugzilla-7f446ae898dc9f9fe8d97fdd01f0e39ba7676867.tar.gz
bugzilla-7f446ae898dc9f9fe8d97fdd01f0e39ba7676867.tar.xz
Bug 313531: Move 'use Bugzilla;' out of globals.pl - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=myk
Diffstat (limited to 'Bugzilla/Chart.pm')
-rw-r--r--Bugzilla/Chart.pm9
1 files changed, 5 insertions, 4 deletions
diff --git a/Bugzilla/Chart.pm b/Bugzilla/Chart.pm
index a0853d508..c878186bc 100644
--- a/Bugzilla/Chart.pm
+++ b/Bugzilla/Chart.pm
@@ -36,6 +36,7 @@ use Bugzilla::Util;
use Bugzilla::Series;
use Date::Format;
+use Date::Parse;
sub new {
my $invocant = shift;
@@ -99,7 +100,7 @@ sub init {
# Make sure the dates are ones we are able to interpret
foreach my $date ('datefrom', 'dateto') {
if ($self->{$date}) {
- $self->{$date} = &::str2time($self->{$date})
+ $self->{$date} = str2time($self->{$date})
|| &::ThrowUserError("illegal_date", { date => $self->{$date}});
}
}
@@ -223,7 +224,7 @@ sub readData {
my $datefrom = $dbh->selectrow_array("SELECT MIN(series_date) " .
"FROM series_data " .
"WHERE series_id IN ($series_ids)");
- $datefrom = &::str2time($datefrom);
+ $datefrom = str2time($datefrom);
if ($self->{'datefrom'} && $self->{'datefrom'} > $datefrom) {
$datefrom = $self->{'datefrom'};
@@ -232,7 +233,7 @@ sub readData {
my $dateto = $dbh->selectrow_array("SELECT MAX(series_date) " .
"FROM series_data " .
"WHERE series_id IN ($series_ids)");
- $dateto = &::str2time($dateto);
+ $dateto = str2time($dateto);
if ($self->{'dateto'} && $self->{'dateto'} < $dateto) {
$dateto = $self->{'dateto'};
@@ -420,7 +421,7 @@ sub generateDateProgression {
$dateto += (2 * $oneday) / 3;
while ($datefrom < $dateto) {
- push (@progression, &::time2str("%Y-%m-%d", $datefrom));
+ push (@progression, time2str("%Y-%m-%d", $datefrom));
$datefrom += $oneday;
}