Commit fd3c32f
committed
Fix default date used for time columns
When a time column is retrieved and converted to a Date object, SQL
Server's default date of 1900-1-1 is substituted for the missing
components since time columns don't have a date.
However, the constants being used for this were erroneously using JS
default of 0 as the month rather than 1, the SQL Server default. This
affected the conversion process and caused certain dates to be
returned incorrectly.
Microsoft Internal Review Id jaykint-43ad01c968244ab6a5481cb64ac7d06f1 parent d6e26d3 commit fd3c32f
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
0 commit comments