The error is:
Fatal error: Method QDateTime::__tostring() cannot take arguments in /home/cables/www/qcodo/includes/qcodo/_core/framework/QDateTime.class.php on line 337
This is the function that report error:
220 * ttt - Timezone as a three-letter code (e.g. GMT)
221 *
222 * @param string $strFormat the format of the date
223 * @return string the formatted date as a string
224 */
225 public function __toString($strFormat = null) {
226 $this->ReinforceNullProperties();
227 if (is_null($strFormat))
228 $strFormat = QDateTime::$DefaultFormat;
229
230 /*
231 (?(?=D)([D]+)|
232 (?(?=M)([M]+)|
233 (?(?=Y)([Y]+)|
234 (?(?=h)([h]+)|
235 (?(?=m)([m]+)|
236 (?(?=s)([s]+)|
237 (?(?=z)([z]+)|
238 (?(?=t)([t]+)|
239 ))))))))
240 */
241
242 // $strArray = preg_split('/([^D^M^Y^h^m^s^z^t])+/', $strFormat);
243 preg_match_all('/(?(?=D)([D]+)|(?(?=M)([M]+)|(?(?=Y)([Y]+)|(?(?=h)([h]+)|(?(?=m)([m]+)|(?(?=s)([s]+)|(?(?=z)([z]+)|(?(?=t)([t]+)|))))))))/', $strFormat, $strArray);
244 $strArray = $strArray[0];
245 $strToReturn = '';
246
247 $intStartPosition = 0;
248 for ($intIndex = 0; $intIndex < count($strArray); $intIndex++) {
249 $strToken = trim($strArray[$intIndex]);
250 if ($strToken) {
251 $intEndPosition = strpos($strFormat, $strArray[$intIndex], $intStartPosition);
252 $strToReturn .= substr($strFormat, $intStartPosition, $intEndPosition - $intStartPosition);
253 $intStartPosition = $intEndPosition + strlen($strArray[$intIndex]);
254
255 switch ($strArray[$intIndex]) {
256 case 'M':
257 $strToReturn .= parent::format('n');
258 break;
259 case 'MM':
260 $strToReturn .= parent::format('m');
261 break;
262 case 'MMM':
263 $strToReturn .= parent::format('M');
264 break;
265 case 'MMMM':
266 $strToReturn .= parent::format('F');
267 break;
268
269 case 'D':
270 $strToReturn .= parent::format('j');
271 break;
272 case 'DD':
273 $strToReturn .= parent::format('d');
274 break;
275 case 'DDD':
276 $strToReturn .= parent::format('D');
277 break;
278 case 'DDDD':
279 $strToReturn .= parent::format('l');
280 break;
281
282 case 'YY':
283 $strToReturn .= parent::format('y');
284 break;
285 case 'YYYY':
286 $strToReturn .= parent::format('Y');
287 break;
288
289 case 'h':
290 $strToReturn .= parent::format('g');
291 break;
292 case 'hh':
293 $strToReturn .= parent::format('h');
294 break;
295 case 'hhh':
296 $strToReturn .= parent::format('G');
297 break;
298 case 'hhhh':
299 $strToReturn .= parent::format('H');
300 break;
301
302 case 'mm':
303 $strToReturn .= parent::format('i');
304 break;
305
306 case 'ss':
307 $strToReturn .= parent::format('s');
308 break;
309
310 case 'z':
311 $strToReturn .= parent::format('a');
312 break;
313 case 'zz':
314 $strToReturn .= parent::format('A');
315 break;
316 case 'zzz':
317 $strToReturn .= sprintf('%s.m.', substr(parent::format('a'), 0, 1));
318 break;
319 case 'zzzz':
320 $strToReturn .= sprintf('%s.M.', substr(parent::format('A'), 0, 1));
321 break;
322
323 case 'ttt':
324 $strToReturn .= parent::format('T');
325 break;
326
327 default:
328 $strToReturn .= $strArray[$intIndex];
329 }
330 }
331 }
332
333 if ($intStartPosition < strlen($strFormat))
334 $strToReturn .= substr($strFormat, $intStartPosition);
335
336 return $strToReturn;
337 }