]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl fix postgresql date
authorEric Bollengier <eric@eb.homelinux.org>
Wed, 25 Oct 2006 12:59:47 +0000 (12:59 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Wed, 25 Oct 2006 12:59:47 +0000 (12:59 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3574 91ce42f0-d328-0410-95d8-f526ca767f89

gui/bweb/lib/Bweb.pm

index 7418ea7d748a98fe687b2bd6612fb84caaf2d6c1..c9f4ee821a6f560c31935c735f14252224eae87c 100644 (file)
@@ -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'");
+       }
     }
 }