CC-4592: Library: Changing fades does not save microseconds

-fixed
This commit is contained in:
denise 2012-10-18 12:09:48 -04:00
parent 887a86c6a1
commit 6c8c7aa285
5 changed files with 52 additions and 11 deletions

View file

@ -125,7 +125,12 @@ class CcSchedule extends BaseCcSchedule {
throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x);
}
}
$this->fade_in = $dt->format('H:i:s').".".$microsecond;
if ($microsecond == 0) {
$this->fadein = $dt->format('H:i:s.u');
} else {
$this->fadein = $dt->format('H:i:s').".".$microsecond;
}
$this->modifiedColumns[] = CcSchedulePeer::FADE_IN;
return $this;
@ -158,7 +163,11 @@ class CcSchedule extends BaseCcSchedule {
}
}
$this->fade_in = $dt->format('H:i:s').".".$microsecond;
if ($microsecond == 0) {
$this->fadeout = $dt->format('H:i:s.u');
} else {
$this->fadeout = $dt->format('H:i:s').".".$microsecond;
}
$this->modifiedColumns[] = CcSchedulePeer::FADE_OUT;
return $this;