fixed: Calendar date localization can be broken
This commit is contained in:
parent
b09787705e
commit
4f0ea8d9ad
2 changed files with 8 additions and 7 deletions
|
|
@ -157,13 +157,13 @@ sub new
|
|||
{
|
||||
$self = DateTime->from_epoch(epoch=>$_[0], time_zone=>"UTC", locale=>$locale);
|
||||
}
|
||||
else
|
||||
{
|
||||
$self = $class->SUPER::new(
|
||||
(_splitMysql($_[0])),
|
||||
time_zone => "UTC",
|
||||
);
|
||||
}
|
||||
else {
|
||||
$self = $class->SUPER::new(
|
||||
_splitMysql($_[0]),
|
||||
time_zone => "UTC",
|
||||
locale => $locale,
|
||||
);
|
||||
}
|
||||
|
||||
#Set the session object
|
||||
$self->{_session} = $session;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue