[SOLVED] How Mask Created - Limit to 10 Characters?

Moderator: crythias

Locked
rsw1941
Znuny newbie
Posts: 15
Joined: 11 Jan 2014, 01:46
Znuny Version: 3.2.9
Real Name: Steve White
Company: Taction: The Contact Center
Location: Midcoast Maine, USA

[SOLVED] How Mask Created - Limit to 10 Characters?

Post by rsw1941 »

When displaying Created on Dashboard ticket widget, can we just display the Date, without HH:MM:SS ?

Have spent considerable time searching OtterHub and others for the answer, with no success.

Thank you
Last edited by rsw1941 on 22 Jan 2014, 00:10, edited 1 time in total.
OTRS 3.3.3 (private/testing) and 3.3.3 (private/production) on Linux with MySQL database.
rsw1941
Znuny newbie
Posts: 15
Joined: 11 Jan 2014, 01:46
Znuny Version: 3.2.9
Real Name: Steve White
Company: Taction: The Contact Center
Location: Midcoast Maine, USA

Re: How Mask Created - Limit to 10 Characters?

Post by rsw1941 »

Crythias,

Can this be done? If yes, can you point me in the right direction?

Thanks
OTRS 3.3.3 (private/testing) and 3.3.3 (private/production) on Linux with MySQL database.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: How Mask Created - Limit to 10 Characters?

Post by crythias »

rsw1941 wrote:When displaying Created on Dashboard ticket widget, can we just display the Date, without HH:MM:SS ?
Not easily.
Best I can surmise ...

Edit Kernel/System/Ticket.pm and find:

Code: Select all

    $Ticket{Created} = $Self->{TimeObject}->SystemTime2TimeStamp(
        SystemTime => $Ticket{CreateTimeUnix},
    );
Add the following like ...

Code: Select all

    my ($Sec1, $Min1, $Hour1, $Day1, $Month1, $Year1, $WeekDay1) = $Self->{TimeObject}->SystemTime2Date(
        SystemTime => $Ticket{CreateTimeUnix},
    );

    $Ticket{MyCreatedDate} = "$Year1-$Month1-$Day1";
Not tested, may have bugs, won't survive updates, etc.
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
rsw1941
Znuny newbie
Posts: 15
Joined: 11 Jan 2014, 01:46
Znuny Version: 3.2.9
Real Name: Steve White
Company: Taction: The Contact Center
Location: Midcoast Maine, USA

Re: How Mask Created - Limit to 10 Characters?

Post by rsw1941 »

Thanks, very much.

"Not easily" will likely be a barricade for me. Is there a pathway for early adopters to suggest a feature? Is this something moderators can do?

I couldn't find a way to brand my topics with the word [SOLVED]. Please don't hesitate to close this and the other "open" ticket.

[I should add that our client is enthralled by the application. I appreciate your assistance...and may be back.]
OTRS 3.3.3 (private/testing) and 3.3.3 (private/production) on Linux with MySQL database.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: How Mask Created - Limit to 10 Characters?

Post by crythias »

rsw1941 wrote:Is there a pathway for early adopters to suggest a feature?
http://otrsteam.ideascale.com
rsw1941 wrote:I couldn't find a way to brand my topics with the word [SOLVED].
Edit your first post's subject in this topic or the next post in this topic. (Subject is in the box above the main box).
rsw1941 wrote:I should add that our client is enthralled by the application. I appreciate your assistance...and may be back.
Wonderful. Note that we on otterhub are a community that is not related to otrs.com. Unless explicitly specified in our email address (not mine, for instance) we have no direct affiliation with OTRS.
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
Locked