Changeset 26903
- Timestamp:
- Jan 22, 2014, 11:48:06 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.6/include/functions.inc.php
r26591 r26903 551 551 else 552 552 { 553 $date = new DateTime();554 555 553 $t = trim($original, '0123456789'); 556 554 if (empty($t)) // from timestamp 557 555 { 558 $date ->setTimestamp($original);556 $date = new DateTime('@'.$original); 559 557 } 560 558 else // from unknown date format (assuming something like Y-m-d H:i:s) … … 573 571 if (!isset($ymdhms[5])) $ymdhms[5] = 0; 574 572 573 $date = new DateTime(); 575 574 $date->setDate($ymdhms[0], $ymdhms[1], $ymdhms[2]); 576 575 $date->setTime($ymdhms[3], $ymdhms[4], $ymdhms[5]);
Note: See TracChangeset
for help on using the changeset viewer.