how to display second functionality

English! place to talk about development, programming and coding
Post Reply
nicole19890107
Znuny newbie
Posts: 31
Joined: 24 Jun 2013, 22:30
Znuny Version: 3.2.6

how to display second functionality

Post by nicole19890107 »

Hello community,
I added seconds to datetime functionality(this functionality is from dynamicfield), such as:
Image
but the thing is this new functionality cannot be displayed
Image
I check some files, Datetime.pm, Layout.pm,AgentTicketPhone.pm to try to display seconds to datatime functionality, but it didnt work. So now i want to figure which part of which file is responsible for the database connection and display and try to solve this problem.
Thank you so much.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: how to display second functionality

Post by crythias »

Kernel/System/DynamicField/Backend/DateTime.pm

Code: Select all

sub DisplayValueRender {
      my ( $Self, %Param ) = @_;

      my $Value = '';

      # convert date to localized string
      if ( defined $Param{Value} ) {
          $Value = $Param{LayoutObject}->Output(
              Template => '$TimeLong{"$Data{"Value"}"}', #change this from Short to Long
              Data => { Value => $Param{Value}, },
          );
      }
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Huwiseg
Znuny newbie
Posts: 61
Joined: 19 Jun 2013, 11:12
Znuny Version: 3.2.4

Re: how to display second functionality

Post by Huwiseg »

Got you an idea what i have to change the output from a dynamic datetime field, like on a pre defined reply using <otrs_ticket_dynamicfield_nameoffield>

There i get yyyy-mm-dd hh:mm:ss and i only need yyyy-mm-dd hh:mm

i cant really find the output in DateTime.pm
Post Reply