Skip to content

Instantly share code, notes, and snippets.

@tsibley
Created August 10, 2010 17:18
Show Gist options
  • Save tsibley/517624 to your computer and use it in GitHub Desktop.
Save tsibley/517624 to your computer and use it in GitHub Desktop.
my $starts;
if ( defined $ARGS{'Starts'} and $ARGS{'Starts'} =~ /\S/ ) {
$starts = new RT::Date( $session{'CurrentUser'} );
$starts->Set( Format => 'unknown', Value => $ARGS{'Starts'} );
}
and then later
Due => $due ? $due->ISO : undef,
Starts => $starts ? $starts->ISO : undef,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment