parent
ddc33b76bb
commit
25b4a0b139
6 changed files with 202 additions and 113 deletions
|
|
@ -153,7 +153,7 @@ sub new
|
|||
{
|
||||
$self = $class->SUPER::new(@_);
|
||||
}
|
||||
elsif ($_[0] =~ /^\d+$/)
|
||||
elsif ($_[0] =~ /^-?\d+$/)
|
||||
{
|
||||
$self = DateTime->from_epoch(epoch=>$_[0], time_zone=>"UTC", locale=>$locale);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue