summaryrefslogtreecommitdiff
path: root/framework/Web
diff options
context:
space:
mode:
authorrojaro <>2010-08-18 08:38:20 +0000
committerrojaro <>2010-08-18 08:38:20 +0000
commit88927b81ddbbb30ee0d51ceaa894f61577090e06 (patch)
treeef152b64c15d74ab3c19ef055aeefc7e06df3c6b /framework/Web
parent2f864833546adcf5e9abe4074d6b33daa458e65e (diff)
fixed #277
Diffstat (limited to 'framework/Web')
-rw-r--r--framework/Web/UI/WebControls/TDatePicker.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/Web/UI/WebControls/TDatePicker.php b/framework/Web/UI/WebControls/TDatePicker.php
index e678b046..c81d8bc1 100644
--- a/framework/Web/UI/WebControls/TDatePicker.php
+++ b/framework/Web/UI/WebControls/TDatePicker.php
@@ -487,7 +487,7 @@ class TDatePicker extends TTextBox
if(isset($values[$key.'$day']))
$day = intval($values[$key.'$day']);
else
- $day = 1;
+ $day = $date['mday'];
if(isset($values[$key.'$month']))
$month = intval($values[$key.'$month']) + 1;
@@ -961,4 +961,4 @@ class TDatePickerPositionMode extends TEnumerable
{
const Top='Top';
const Bottom='Bottom';
-} \ No newline at end of file
+}