diff options
author | xue <> | 2006-08-31 20:17:39 +0000 |
---|---|---|
committer | xue <> | 2006-08-31 20:17:39 +0000 |
commit | 47a3cb88e7ed7f2a87bbf024dff3416fc6cd8002 (patch) | |
tree | 0eb41f1ab1f2351905cd95054a328c34361e5080 /framework/Web/UI/WebControls/TDatePicker.php | |
parent | b680e71693696a7b5280787ccd084cf860bcf989 (diff) |
merge from 3.0 branch till 1374.
Diffstat (limited to 'framework/Web/UI/WebControls/TDatePicker.php')
-rw-r--r-- | framework/Web/UI/WebControls/TDatePicker.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/framework/Web/UI/WebControls/TDatePicker.php b/framework/Web/UI/WebControls/TDatePicker.php index 02361e54..2a9340e5 100644 --- a/framework/Web/UI/WebControls/TDatePicker.php +++ b/framework/Web/UI/WebControls/TDatePicker.php @@ -263,14 +263,15 @@ class TDatePicker extends TTextBox /**
* Sets the date for the date picker using timestamp.
- * @param integer time stamp for the date picker
+ * @param float time stamp for the date picker
*/
public function setTimeStamp($value)
{
- $date = TPropertyValue::ensureInteger($value);
+ $date = TPropertyValue::ensureFloat($value);
$formatter = Prado::createComponent('System.Util.TSimpleDateFormatter',
$this->getDateFormat());
- $this->setText($formatter->format($date));
+ $d =$formatter->format($date);
+ $this->setText($d);
}
/**
|