Permalink
Browse files

Use Mojo::Date instead of loading DateTime

We have the one (that is probably already loaded) so don't use
things we don't need.
  • Loading branch information...
1 parent f4cd2cc commit 1014b86e07da70a35f8517372416affe805577c5 @afresh1 committed Oct 28, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 OpenBSDtracker
View
3 OpenBSDtracker
@@ -2,7 +2,6 @@
use Mojolicious::Lite;
use Mojo::ByteStream;
use WWW::Opentracker::Stats;
-use DateTime;
use Mojo::Date;
#use Convert::Bencode qw( bdecode );
@@ -42,7 +41,7 @@ helper human_number => sub {
helper human_date => sub {
my ($self, $epoch) = @_;
- my $date = DateTime->from_epoch( epoch => $epoch );
+ my $date = Mojo::Date->new( $epoch );
my $result = "$date";
return Mojo::ByteStream->new($result);;
};

0 comments on commit 1014b86

Please sign in to comment.