summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB')
-rw-r--r--LedgerSMB/Form.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm
index 48ef9c8f..9883839c 100644
--- a/LedgerSMB/Form.pm
+++ b/LedgerSMB/Form.pm
@@ -977,7 +977,7 @@ sub datetonum {
my ( $self, $myconfig, $date, $picture ) = @_;
if ($date =~ /^\d{4}-\d{2}-\d{2}$/){
- $date =~ s/-//;
+ $date =~ s/-//g;
return $date;
}
@@ -1003,7 +1003,6 @@ sub datetonum {
$dd = substr( "0$dd", -2 );
$mm = substr( "0$mm", -2 );
-
$date = "$yy$mm$dd";
}