X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDBConnect.pm;h=9142f1c71b6a6b50365adf2cd6967299277cee67;hb=db3b23aa8ab6baaa3854259b59b033fbd23541ad;hp=afdf2c9e1b0902cf460016b36f29d6d9d7d61065;hpb=841d44c00aae1166a0721e40dc2f9ffb7b9ac5b5;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, @_ };