[freeside-commits] freeside/httemplate/elements tr-input-date-field.html, 1.6, 1.7
Ivan,,,
ivan at wavetail.420.am
Thu Aug 6 17:39:16 PDT 2009
Update of /home/cvs/cvsroot/freeside/httemplate/elements
In directory wavetail.420.am:/tmp/cvs-serv12311/httemplate/elements
Modified Files:
tr-input-date-field.html
Log Message:
don't start recurring billing when a start date hasn't been reached yet either... and since that works, add the start date to new package order, RT#5347
Index: tr-input-date-field.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/elements/tr-input-date-field.html,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- tr-input-date-field.html 22 Jan 2007 11:36:40 -0000 1.6
+++ tr-input-date-field.html 7 Aug 2009 00:39:14 -0000 1.7
@@ -28,12 +28,15 @@
$format = "%m/%d/%Y" unless $format;
$label = $name unless $label;
-if ($usedatetime) {
- my $dt = DateTime->from_epoch(epoch => $value, time_zone => 'floating');
- $value = $dt->strftime($format)
- unless $value eq '';
-}else{
- $value = time2str($format, $value);
+if ( $value =~ /\S/ ) {
+ if ( $usedatetime ) {
+ my $dt = DateTime->from_epoch(epoch => $value, time_zone => 'floating');
+ $value = $dt->strftime($format);
+ } else {
+ $value = time2str($format, $value);
+ }
+} else {
+ $value = '';
}
</%init>
More information about the freeside-commits
mailing list