-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow DateStyle to be "ISO, MDY", "ISO, DMY", or "ISO, YMD". #30
Comments
PostgresClientKit sets the Postgres If you want to control the format of dates in your user interface, you should use the |
In my Postgres database are many funcs, where the date is set as string in format DD.MM.YYYY. ISO DMY is required. Would it be possible to set ISO DMY or MDY as a parameter please? |
Could please try this commit (tip of the develop branch)? 40fe0ff This should allow you to set the |
If i used playground, i couldn't use import PostgresClientKit :No such module 'PostgresClientKit' But i modified the test and it worked properly. |
Released in v1.3.1. |
thank you so much |
Hallo, I would like to change parameter datestyle from ISO, MDY to ISO, DMY in Parameter.swift
When I try:
let text = "SET DateStyle TO 'ISO, DMY';"
let cursor = try Database.connection().prepareStatement(text: text).execute()
error: Invalid value for Postgres parameter (response.name): ISO, DMY (must be ISO, MDY); closing connection
Please what is the best way to do this?
The text was updated successfully, but these errors were encountered: