Created date for transaction

Hi,

We like to print the creation date of a transaction to a cf…

$TempDate = $TA->Created()

The result is, however, in GMT.
How can I convert it to my local timezone?

Cheers,
Bjï¿œrn

this worked fo me

{
my $Date = RT::Date->new($CurrentUser);
$Date->Set(“Format” => ‘sql’, “Value” => $TA->Created);
$TempMap=$Date->ISO(“Timezone” =>“user” );
}

Cheers,
Bjï¿œrnAm 03.02.11 14:02, schrieb Bjï¿œrn Schulz:

Hi,

We like to print the creation date of a transaction to a cf…

$TempDate = $TA->Created()

The result is, however, in GMT.
How can I convert it to my local timezone?

Cheers,
Bjï¿œrn

this worked fo me

{
my $Date = RT::Date->new($CurrentUser);
$Date->Set(“Format” => ‘sql’, “Value” => $TA->Created);
$TempMap=$Date->ISO(“Timezone” =>“user” );

Alternatively $TA->CreatedObj->AsString();

Hi,

We like to print the creation date of a transaction to a cf…

$TempDate = $TA->Created()

The result is, however, in GMT.
How can I convert it to my local timezone?

$TA->CreatedObj is probably closer to what you want, and then you can
use RT::Date methods on it

-kevin