Change default pending date

Moderator: crythias

Locked
Mothra
Znuny expert
Posts: 189
Joined: 26 Oct 2010, 15:04
Znuny Version: 3.2.11

Change default pending date

Post by Mothra »

In the Pending date picker you get on various screens, the default date is set exactly 24 hours in the future.

Where is this set? I'd like to change the value, for instance, to 7 days in the future.

I've been looking through Layout.pm, in the sub "BuildDateSelection", and found the following:

Code: Select all

 my ( $s, $m, $h, $D, $M, $Y ) = $Self->{UserTimeObject}->SystemTime2Date(
        SystemTime => $Self->{UserTimeObject}->SystemTime() + $DiffTime,
    );
Is it the $DiffTime that adds on 24 hours (or one day)? If so, where is this value set?
OTRS 3.2.11 on Centos 6.4 with MySQL 5.0. Agents and internal customers authenticate via Active Directory.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Change default pending date

Post by crythias »

Config Options: Ticket -> Frontend::Agent
Ticket::Frontend::PendingDiffTime:
Time in seconds that gets added to the actual time if setting a pending-state (default: 86400 = 1 day).

Also you might want to take a look at this thread, which forces it:
http://forums.otrs.org/viewtopic.php?f=62&t=5988
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
Mothra
Znuny expert
Posts: 189
Joined: 26 Oct 2010, 15:04
Znuny Version: 3.2.11

Re: Change default pending date

Post by Mothra »

crythias wrote:Config Options: Ticket -> Frontend::Agent
Ticket::Frontend::PendingDiffTime:
Time in seconds that gets added to the actual time if setting a pending-state (default: 86400 = 1 day).
Thanks - Not sure how I missed that while searching yesterday! I don't suppose there's a way to make this adjustable per theme, is there?
OTRS 3.2.11 on Centos 6.4 with MySQL 5.0. Agents and internal customers authenticate via Active Directory.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Change default pending date

Post by crythias »

There can be a variation of the link above which can be per theme.
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