time zone problem
This commit is contained in:
parent
ee0c9fce6e
commit
731a9ef29e
1 changed files with 2 additions and 1 deletions
|
|
@ -206,7 +206,8 @@ sub epochToHuman {
|
|||
my $language = WebGUI::International::get($session{user}{language});
|
||||
my $locale = $language->{languageAbbreviation} || "en";
|
||||
$locale .= "_".$language->{locale} if ($language->{locale});
|
||||
my $dt = DateTime->from_epoch( epoch=>shift||time(), time_zone=>$session{user}{timeZone}, locale=>$locale );
|
||||
my $timeZone = $session{user}{timeZone} || "America/Chicago";
|
||||
my $dt = DateTime->from_epoch( epoch=>shift||time(), time_zone=>$timeZone, locale=>$locale );
|
||||
my $output = shift || "%z %Z";
|
||||
my $temp;
|
||||
#---date format preference
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue