X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FElements%2FSelectDate;h=a82f17c8003a7c2e3b35be800c2836b4ebc30ba2;hb=7322f2afedcc2f427e997d1535a503613a83f088;hp=46178b0595c30ffed94237c62d9632b4a4e24a7e;hpb=f3c4966ed1f6ec3db7accd6dcdd3a5a3821d72a7;p=freeside.git diff --git a/rt/share/html/Elements/SelectDate b/rt/share/html/Elements/SelectDate index 46178b059..a82f17c80 100755 --- a/rt/share/html/Elements/SelectDate +++ b/rt/share/html/Elements/SelectDate @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2016 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