Skip to content

Commit

Permalink
Try removing division by 300 for dates
Browse files Browse the repository at this point in the history
This should break MSSQL :-)

(cherry picked from commit ea1a671)
  • Loading branch information
thekid authored and treuter committed Dec 21, 2018
1 parent 341028d commit 17c76e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/php/rdbms/tds/TdsRecord.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ static function __static() {
* @return string
*/
protected function toDate($days, $seconds) {
return Date::create(1900, 1, 1 + $days, 0, 0, $seconds / 300);
return Date::create(1900, 1, 1 + $days, 0, 0, $seconds);
}

/**
Expand Down

0 comments on commit 17c76e9

Please sign in to comment.