Skip to content

Commit d7da45e

Browse files
authored
Merge pull request #1 from WePostSocial/datetime
fix datetime issue
2 parents 9993dab + 114668f commit d7da45e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/DateTime.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public static function get_format($format=null)
117117
* This needs to be overriden so it returns an instance of this class instead of PHP's \DateTime.
118118
* See http://php.net/manual/en/datetime.createfromformat.php
119119
*/
120-
public static function createFromFormat($format, $time, $tz = null) : \DateTime|false
120+
public static function createFromFormat($format, $time, $tz = null)
121121
{
122122
$phpDate = $tz ? parent::createFromFormat($format, $time, $tz) : parent::createFromFormat($format, $time);
123123
if (!$phpDate)

0 commit comments

Comments
 (0)