From ba042f005304abbe4adae32b522ec2d99f7465b1 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Wed, 25 Oct 2006 12:59:47 +0000 Subject: [PATCH] ebl fix postgresql date git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3574 91ce42f0-d328-0410-95d8-f526ca767f89 --- gui/bweb/lib/Bweb.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gui/bweb/lib/Bweb.pm b/gui/bweb/lib/Bweb.pm index 7418ea7d74..c9f4ee821a 100644 --- a/gui/bweb/lib/Bweb.pm +++ b/gui/bweb/lib/Bweb.pm @@ -1174,6 +1174,10 @@ sub connect_db unless ($self->{dbh}); $self->{dbh}->{FetchHashKeyName} = 'NAME_lc'; + + if ($self->{info}->{dbi} =~ /^dbi:Pg/i) { + $self->{dbh}->do("SET datestyle TO 'ISO, YMD'"); + } } } -- 2.39.5