diff options
author | ivan <ivan> | 2010-03-08 10:57:06 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-03-08 10:57:06 +0000 |
commit | 06a85a88bfdb0d3fc79ee055eb8327658dfe63ab (patch) | |
tree | 239e526d182be4b3a8824811fde923fbd50621f5 /httemplate/edit/REAL_cust_pkg.cgi | |
parent | 611624bc08f525d19e1bd548a7d005aa73a53145 (diff) |
proper use of date_format config for international date formats, RT#7009
Diffstat (limited to 'httemplate/edit/REAL_cust_pkg.cgi')
-rwxr-xr-x | httemplate/edit/REAL_cust_pkg.cgi | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/httemplate/edit/REAL_cust_pkg.cgi b/httemplate/edit/REAL_cust_pkg.cgi index c31213805..18d4415c6 100755 --- a/httemplate/edit/REAL_cust_pkg.cgi +++ b/httemplate/edit/REAL_cust_pkg.cgi @@ -94,7 +94,7 @@ <SCRIPT TYPE="text/javascript"> Calendar.setup({ inputField: "<% $column %>_text", - ifFormat: "%m/%d/%Y", + ifFormat: "<% $date_format %>", button: "<% $column %>_button", align: "BR" }); @@ -129,20 +129,16 @@ <% include('/elements/footer.html') %> -<%once> - -#my $format = "%c %z (%Z)"; -my $format = "%m/%d/%Y %T %z (%Z)"; - -#false laziness w/view/cust_main/packages.html -#my( $billed_or_prepaid, - -</%once> <%init> die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Edit customer package dates'); +my $conf = new FS::Conf; +my $date_format = $conf->config('date_format') || '%m/%d/%Y'; + +my $format = $date_format. ' %T %z (%Z)'; + my $error = ''; my( $pkgnum, $cust_pkg ); |