X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDBConnect.pm;h=9142f1c71b6a6b50365adf2cd6967299277cee67;hb=428bfc18faf4e37bf8f5203aab4402945dba3327;hp=afdf2c9e1b0902cf460016b36f29d6d9d7d61065;hpb=576c2a14f72af8f2cfe5679b6c264f13aff39ddf;p=kivitendo-erp.git diff --git a/SL/DBConnect.pm b/SL/DBConnect.pm index afdf2c9e1..9142f1c71 100644 --- a/SL/DBConnect.pm +++ b/SL/DBConnect.pm @@ -44,7 +44,7 @@ sub connect { sub get_datestyle { my ($self, $dateformat) = @_; - return $dateformat_to_datestyle{ $dateformat || $::myconfig{dateformat} }; + return $dateformat_to_datestyle{ $dateformat || $::myconfig{dateformat} // '' }; } sub get_initial_sql { @@ -72,7 +72,7 @@ sub get_connect_args { sub get_options { my $self = shift; my $options = { - pg_enable_utf8 => $::locale->is_utf8, + pg_enable_utf8 => 1, @_ };