fixed: problem with Calendar in EMS "Ticket" tab, "Start" field
This commit is contained in:
parent
5d333e0ee7
commit
fb4eff7c4a
4 changed files with 48 additions and 20 deletions
|
|
@ -1026,7 +1026,9 @@ className='WebGUI::Asset::Sku::EMSTicket' and state='published' and revisionDate
|
|||
foreach my $field (keys %{$meta}) {
|
||||
$description .= '<p><b>'.$field.'</b>: '.$meta->{$field}.'</p>' unless ($meta->{$field} eq "");
|
||||
}
|
||||
my $date = WebGUI::DateTime->new($session, $ticket->get('startDate'));
|
||||
my $date = WebGUI::DateTime->new($session, mysql => $ticket->get('startDate'))
|
||||
->set_time_zone($self->get("timezone"))
|
||||
->webguiDate("%W %z %Z");
|
||||
push(@records, {
|
||||
title => $ticket->getTitle,
|
||||
description => $description,
|
||||
|
|
@ -1038,7 +1040,7 @@ className='WebGUI::Asset::Sku::EMSTicket' and state='published' and revisionDate
|
|||
assetId => $ticket->getId,
|
||||
eventNumber => $ticket->get('eventNumber'),
|
||||
location => $ticket->get('location'),
|
||||
startDate => $date->webguiDate("%W @ %H:%n%p"),
|
||||
startDate => $date,
|
||||
duration => $ticket->get('duration'),
|
||||
});
|
||||
last unless (scalar(@records) < $numberOfResults);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue