From: Eric Bollengier Date: Wed, 25 Oct 2006 12:59:47 +0000 (+0000) Subject: ebl fix postgresql date X-Git-Tag: Release-2.0.0~343 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ba042f005304abbe4adae32b522ec2d99f7465b1;p=bacula%2Fbacula ebl fix postgresql date git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3574 91ce42f0-d328-0410-95d8-f526ca767f89 --- 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'"); + } } }