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
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
is $t->leeches, 13, 'leeches';
is $t->count, 1, 'count';
is $t->size, '587 MB', 'size';
-is $t->date, 1420495200,'date';
+is $t->date, 1420502400,'date';
is $t->uploader, 'The_Doctor-', 'uploader';
is $t->names->[0], 'archlinux-2015.01.01-dual.iso', 'names';
is $t->lengths->[0], 615514112, 'lengths';
is $t3->hash, '85DF191A921C20B2DDAFF72368CAB93BA18C5ACE', 'hash #3'
};
-is $t1->date, 1420495200, 'date';
+is $t1->date, 1420502400, 'date';
is $t2->title, 'FreeBSD 7.1 i386.DVD.iso', 'title';
like $t1->torrent, qr/^d/, 'torrent file starts with d';