Skip to content

Commit

Permalink
[Postgres] Fixes #51315 : force datestyle to ISO
Browse files Browse the repository at this point in the history
  • Loading branch information
troopa81 authored and github-actions[bot] committed Mar 29, 2023
1 parent e51297b commit 9f55ce5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/postgres/qgspostgresconn.cpp
Expand Up @@ -451,7 +451,7 @@ QgsPostgresConn::QgsPostgresConn( const QString &conninfo, bool readOnly, bool s
// Quoting floating point values and application name for PostgreSQL connection in 1 request
LoggedPQexecNR(
"QgsPostgresConn",
QStringLiteral( "SET extra_float_digits=3; SET application_name=%1" ).arg( quotedValue( QgsApplication::applicationFullName() ) )
QStringLiteral( "SET extra_float_digits=3; SET application_name=%1; SET datestyle='ISO'" ).arg( quotedValue( QgsApplication::applicationFullName() ) )
);
}

Expand Down

0 comments on commit 9f55ce5

Please sign in to comment.