File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 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
4
- and is not universal and incorrect interprets it as Y-d-m which is beyond idiotic.
5
- Laravel uses Y-m-d as their international format, which can lead to errors depending on SQL SERVER Settings.
6
- This command checks the vendor directory for the file and updates it if required.
3
+ There is an international date format ` Y-m-d ` that is supposed to be universal, however the MSSQL implementation is flawed
4
+ and is NOT universal and incorrectly interprets ` Y-m-d ` as ` Y-d-m ` which is beyond idiotic.
5
+ Laravel uses ` Y-m-d ` as their international format, which can lead to errors depending on SQL SERVER Settings.
6
+
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
9
+ was too big to be made.
10
+
11
+ I hope this is helpful to those of you out there using MSSQL with PHP/Laravel.
7
12
8
13
## Installation
9
14
@@ -40,4 +45,4 @@ on install and update.
40
45
This is due to the fact that whenever ` composer update ` or ` composer install ` is run and the illuminate package
41
46
is updated it will overwrite the ` SqlServerGrammar.php ` with the origional version, so it is necessary to call
42
47
the command whenever this has the potential of happening. If no change has been made to the file it will
43
- not be modified.
48
+ not be modified.
You can’t perform that action at this time.
0 commit comments