Skip to content

Commit e05956d

Browse files
thekidtreuter
authored andcommitted
Try removing division by 300 for dates
This should break MSSQL :-) (cherry picked from commit ea1a671)
1 parent 6bc732a commit e05956d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/php/rdbms/tds/TdsRecord.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ static function __static() {
2020
* @return string
2121
*/
2222
protected function toDate($days, $seconds) {
23-
return Date::create(1900, 1, 1 + $days, 0, 0, $seconds / 300);
23+
return Date::create(1900, 1, 1 + $days, 0, 0, $seconds);
2424
}
2525

2626
/**

0 commit comments

Comments
 (0)