You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+9-2Lines changed: 9 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
1
# MSSQL Dateformat Fixer
2
2
3
-
There is an international date format `Y-m-d` that is supposed to be universal, however the MSSQL implementation is flawed
3
+
There is an [international date format (ISO standard)](https://www.iso.org/iso-8601-date-and-time-format.html) (YYYY-MM-DD)`Y-m-d` that is supposed to be universal, however the MSSQL implementation is flawed
4
4
and is NOT universal and incorrectly interprets `Y-m-d` as `Y-d-m` which is beyond idiotic.
5
5
Laravel uses `Y-m-d` as their international format, which can lead to errors depending on SQL SERVER Settings.
6
6
7
7
There is one format `Ymd` which is absolutely gauranteed to always be interpreted by SQLServer as `Ymd`. This command patches the file in
8
-
illuminate library to use `Ymd` instead of `Y-m-d`. I [Requested]() that the change be made in the illuminate library but it was felt the change
8
+
illuminate library to use `Ymd` instead of `Y-m-d`. I [Requested](https://github.com/laravel/framework/issues/49074) that the change be made in the illuminate library but it was felt the change
9
9
was too big to be made.
10
10
11
11
I hope this is helpful to those of you out there using MSSQL with PHP/Laravel.
@@ -46,3 +46,10 @@ This is due to the fact that whenever `composer update` or `composer install` is
46
46
is updated it will overwrite the `SqlServerGrammar.php` with the origional version, so it is necessary to call
47
47
the command whenever this has the potential of happening. If no change has been made to the file it will
0 commit comments