Skip to content

CultureInfo for date parameters #356

Open
@MatthiasWeiser

Description

@MatthiasWeiser

Description

Currently I am developing on German locale VS against a US locale Postgres database.
When querying for date values locally I can see that the dates in queries are translated with German locale which fails against the US postgres server. It would be nice if the locale for formatting dates and potentially other culture sensitive parameters could be set at startup with potentially using CultureInfo.Invariant as default

Repro steps

Use DB server and app machine with different locale.
Perform a query with a date field as parameter.

Expected behavior

Query works.

Actual behavior

Query fails.

Known workarounds

Use same locale on FSharp and DB machine.

Related information

  • Postgresql
  • Windows 10
  • .NET Runtime

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions