BUGFIX MSSQLDatabase::formattedDatetimeClause() should start the epoch at 1/1/1970 12:00 instead of 00:00 which it defaults at, otherwise comparing it to PHP produces a full 24 hour time difference

This commit is contained in:
Sean Harvey 2010-05-19 10:25:46 +00:00
parent 7fad117464
commit b5edca6f91

View File

@ -1372,7 +1372,7 @@ class MSSQLDatabase extends SS_Database {
$date = "'$date.000'";
}
if($format == '%U') return "DATEDIFF(s, '19700101', $date)";
if($format == '%U') return "DATEDIFF(s, '19700101 12:00:00:000', $date)";
$trans = array(
'Y' => 'yy',