CC-5429 : importing file > 24 hours doesn't work

This commit is contained in:
Naomi 2013-10-16 17:27:40 -04:00
parent fa5c1018bf
commit 02dbde82ec
1 changed files with 0 additions and 30 deletions

View File

@ -27,36 +27,6 @@ class CcFiles extends BaseCcFiles {
return $length;
}
public function getDbLength($format = "H:i:s.u")
{
return parent::getDbLength($format);
}
public function setDbLength($v)
{
//we are using DateTime instead of DateInterval because the latter doesn't
//support subseconds :(
if ($v instanceof DateTime) {
$dt = $v;
}
else {
try {
$dt = new DateTime($v);
} catch (Exception $x) {
throw new PropelException('Error parsing date/time value: ' .
var_export($v, true), $x);
}
}
$this->length = $dt->format('H:i:s.u');
$this->modifiedColumns[] = CcFilesPeer::LENGTH;
return $this;
}
public function setDbTrackNumber($v)
{
$max = pow(2, 31)-1;