X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FWebService%2FStrike%2FTorrent.pm;h=391a3cb94543167dd4e34bcadc9b186d1029be4f;hb=f447922de5bf33450e11b85a885e2cd9d70b9677;hp=34502bd4ee1a0af843a608f96c7e66d79cefbd50;hpb=9b0928060d55238fb248b38e3d9dc4e977d13fc4;p=webservice-strike.git diff --git a/lib/WebService/Strike/Torrent.pm b/lib/WebService/Strike/Torrent.pm index 34502bd..391a3cb 100644 --- a/lib/WebService/Strike/Torrent.pm +++ b/lib/WebService/Strike/Torrent.pm @@ -29,7 +29,7 @@ sub new{ my ($self, @args) = @_; $self = $self->SUPER::new(@args); $self->{torrent_hash} = uc $self->hash; - $self->{upload_date} = str2time $self->date; + $self->{upload_date} = str2time $self->date, 'UTC'; $self->{file_names} = $self->file_info->[0]->{file_names}; $self->{file_lengths} = $self->file_info->[0]->{file_lengths}; $self @@ -79,7 +79,7 @@ WebService::Strike::Torrent - Class representing information about a torrent say $t->leeches; say $t->count; # 1 say $t->size; # 587 MB - say $t->date; # 1420495200 + say $t->date; # 1420502400 say $t->uploader; # The_Doctor- say @{$t->names}; # archlinux-2015.01.01-dual.iso say @{$t->lengths}; # 615514112