Skip to content

Commit 5cbd796

Browse files
committed
updated
1 parent 1784592 commit 5cbd796

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/Net/RDAP/Event.pm

+4-3
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ sub date { DateTime::Tiny->from_string(substr(shift->{eventDate}, 0, 19)) }
7070
7171
=head2 Event Time Zone
7272
73-
$tz = $event->date_timezone;
73+
$tz = $event->date_tz;
7474
7575
Since L<DateTime::Tiny> does not support time zones, this method will return the
7676
time zone part of the C<eventDate> property. For a well-formed C<eventDate>
@@ -79,9 +79,10 @@ C<+/-HH:MM>.
7979
8080
=cut
8181

82-
sub date_timezone {
83-
my $str = substr(shift->{eventDate}, 20);
82+
sub date_tz {
83+
my $str = substr(shift->{eventDate}, 19);
8484
$str =~ s/^\.\d+//g;
85+
return $str;
8586
}
8687

8788
=pod

0 commit comments

Comments
 (0)