Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Postgres] Fixes #51315 : force datestyle to ISO
  • Loading branch information
troopa81 authored and nyalldawson committed Mar 30, 2023
1 parent e51297b commit f760495
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 f760495

Please sign in to comment.