summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Util.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/Util.pm')
-rw-r--r--Bugzilla/Util.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/Bugzilla/Util.pm b/Bugzilla/Util.pm
index d158be1e1..1f698f80e 100644
--- a/Bugzilla/Util.pm
+++ b/Bugzilla/Util.pm
@@ -50,8 +50,6 @@ use Bugzilla::RNG qw(irand);
use Date::Parse;
use Date::Format;
-use DateTime;
-use DateTime::TimeZone;
use Digest;
use Email::Address;
use List::Util qw(first);
@@ -485,6 +483,9 @@ sub datetime_from {
delete $args{$arg} if !defined $args{$arg};
}
+ # This module takes time to load and is only used here, so we
+ # |require| it here rather than |use| it.
+ require DateTime;
my $dt = new DateTime(\%args);
# Now display the date using the given timezone,