X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FElements%2FEditCustomFieldDateTime;h=b50ea431a0dab19bfcc9e70a2b4f4a02f05abdfa;hb=5b3efac57771fbc37874a3dd39d3df835cdd6133;hp=25d1ce160c18a3902d4f356894978b01446d16ca;hpb=b8988e1d3ac75af63c85e8563e57701030315a9e;p=freeside.git diff --git a/rt/share/html/Elements/EditCustomFieldDateTime b/rt/share/html/Elements/EditCustomFieldDateTime index 25d1ce160..b50ea431a 100644 --- a/rt/share/html/Elements/EditCustomFieldDateTime +++ b/rt/share/html/Elements/EditCustomFieldDateTime @@ -46,11 +46,11 @@ %# %# END BPS TAGGED BLOCK }}} % my $name = $NamePrefix.$CustomField->Id.'-Values'; -<& /Elements/SelectDate, Name => "$name", current => 0 &> (<%$DateObj->AsString%>) +<& /Elements/SelectDate, Name => "$name", current => 0, $KeepValue && $Default ? (Default => $Default) : () &> (<%$DateObj->AsString($KeepValue ? ( Timezone => 'utc' ) : () )%>) <%INIT> my $DateObj = RT::Date->new ( $session{'CurrentUser'} ); -$DateObj->Set( Format => 'ISO', Value => $Default ); +$DateObj->Set( Format => $Format, Value => $Default ); <%ARGS> $Object => undef @@ -59,4 +59,6 @@ $NamePrefix => undef $Default => undef $Values => undef $MaxValues => 1 +$Format => 'ISO' +$KeepValue => undef