@@ -29,6 +29,7 @@ public function testSubmitDateTime()
29
29
'model_timezone ' => 'UTC ' ,
30
30
'view_timezone ' => 'UTC ' ,
31
31
'date_widget ' => 'choice ' ,
32
+ 'years ' => array (2010 ),
32
33
'time_widget ' => 'choice ' ,
33
34
'input ' => 'datetime ' ,
34
35
));
@@ -57,6 +58,7 @@ public function testSubmitString()
57
58
'view_timezone ' => 'UTC ' ,
58
59
'input ' => 'string ' ,
59
60
'date_widget ' => 'choice ' ,
61
+ 'years ' => array (2010 ),
60
62
'time_widget ' => 'choice ' ,
61
63
));
62
64
@@ -82,6 +84,7 @@ public function testSubmitTimestamp()
82
84
'view_timezone ' => 'UTC ' ,
83
85
'input ' => 'timestamp ' ,
84
86
'date_widget ' => 'choice ' ,
87
+ 'years ' => array (2010 ),
85
88
'time_widget ' => 'choice ' ,
86
89
));
87
90
@@ -108,12 +111,13 @@ public function testSubmitWithoutMinutes()
108
111
'model_timezone ' => 'UTC ' ,
109
112
'view_timezone ' => 'UTC ' ,
110
113
'date_widget ' => 'choice ' ,
114
+ 'years ' => array (2010 ),
111
115
'time_widget ' => 'choice ' ,
112
116
'input ' => 'datetime ' ,
113
117
'with_minutes ' => false ,
114
118
));
115
119
116
- $ form ->setData (new \DateTime (' 2010-06-02 03:04:05 UTC ' ));
120
+ $ form ->setData (new \DateTime ());
117
121
118
122
$ input = array (
119
123
'date ' => array (
@@ -137,12 +141,13 @@ public function testSubmitWithSeconds()
137
141
'model_timezone ' => 'UTC ' ,
138
142
'view_timezone ' => 'UTC ' ,
139
143
'date_widget ' => 'choice ' ,
144
+ 'years ' => array (2010 ),
140
145
'time_widget ' => 'choice ' ,
141
146
'input ' => 'datetime ' ,
142
147
'with_seconds ' => true ,
143
148
));
144
149
145
- $ form ->setData (new \DateTime (' 2010-06-02 03:04:05 UTC ' ));
150
+ $ form ->setData (new \DateTime ());
146
151
147
152
$ input = array (
148
153
'date ' => array (
@@ -168,6 +173,7 @@ public function testSubmitDifferentTimezones()
168
173
'model_timezone ' => 'America/New_York ' ,
169
174
'view_timezone ' => 'Pacific/Tahiti ' ,
170
175
'date_widget ' => 'choice ' ,
176
+ 'years ' => array (2010 ),
171
177
'time_widget ' => 'choice ' ,
172
178
'input ' => 'string ' ,
173
179
'with_seconds ' => true ,
0 commit comments