[rt-users] problems getting dates parsed with RT::Date

Ted Serreyn ted at serreyn.com
Wed Aug 21 11:43:11 EDT 2002


I am trying to get a date that looks like "Fri Mar 08 12:14:32 CST 2002"
parsed into RT using the RT::Date methods.  However it is not working.

Is there any documentation on exactly what RT::Date will parse?


@Arrival, @Closed and @LastUpdated all contain dates in the format given
above?


    my $RTCreated = new RT::Date();
    my $RTResolved = new RT::Date();
    my $RTLastUpdated = new RT::Date();
    $RTCreated->Set (Format => 'unknown',
                     Value => @Arrival);
    $RTResolved->Set (Format => 'unknown',
                     Value => @Closed);
    $RTLastUpdated->Set (Format => 'unknown',
                     Value => @LastUpdated);


however the RTCreated does not have any date value in it?

Ted Serreyn






More information about the rt-users mailing list