Skip to content
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

[2012-11-20] SQL Server in default language that isn't English causes problems #55

Open
sminnee opened this issue Oct 1, 2018 · 0 comments

Comments

@sminnee
Copy link
Member

sminnee commented Oct 1, 2018

created by: @halkyon (sharvey)
created at: 2012-11-20
original ticket: http://open.silverstripe.org/ticket/8040
second "original" ticket: silverstripe/silverstripe-framework#1647


See http://www.silverstripe.org/installing-silverstripe/show/21394?start=8#post318246 for more details.

In this case, the default language of SQL Server isn't set to English, and because of this, date values in the format of Y-m-d H:i:s get mis-converted when queried, causing an "out of bounds" error.

Localisation at the database level isn't required for !SilverStripe, so it's possible we can set the language of the database to English once the connection is established in !MSSQLDatabase::__construct()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant