X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FElements%2FSelectDate;h=6ac0a3438da5751b9e663b8a8064368c0669027d;hb=de9d037528895f7151a9aead6724ce2df95f9586;hp=98656c15de7bde97ca26cb0f84825c40a5b5b348;hpb=45d35d5739d05e602bc317739485693e0e9ff0b5;p=freeside.git diff --git a/rt/share/html/Elements/SelectDate b/rt/share/html/Elements/SelectDate index 98656c15d..6ac0a3438 100755 --- a/rt/share/html/Elements/SelectDate +++ b/rt/share/html/Elements/SelectDate @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2014 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2017 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -47,7 +47,7 @@ %# END BPS TAGGED BLOCK }}} %# in PageLayout instead, once <% include('/elements/init_calendar.html') |n %> % $m->callback( %ARGS, Name => $Name, CallbackName => 'BeforeDateInput' ); - + % $m->callback( %ARGS, Name => $Name, CallbackName => 'AfterDateInput' ); <%init> -unless ((defined $Default) or - ($current <= 0)) { - my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = - localtime($current); - $Default = sprintf("%04d-%02d-%02d %02d:%02d", - $year+1900,$mon+1,$mday, - $hour,$min); +unless ((defined $Default) or ($current <= 0)) { + my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = + localtime($current); + $Default = sprintf("%04d-%02d-%02d %02d:%02d", + $year+1900,$mon+1,$mday, + $hour,$min); } $Value = $Value || $Default; unless ($Name) { - $Name = $menu_prefix. "_Date"; + $Name = $menu_prefix. "_Date"; } <%args> - $ShowTime => 1 $menu_prefix=>'' $current=>time