Skip to content

Commit

Permalink
Merge pull request #31 from cracki/master
Browse files Browse the repository at this point in the history
Update jDateTime.php
  • Loading branch information
morilog authored Aug 5, 2017
2 parents 3fafcd6 + bc22d2b commit 04442a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jDateTime.php
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ public static function parseFromFormat($format, $date)
$dt['is_dst'] = '';

if (strlen($dt['year']) == 2) {
$now = self::forge('now');
$now = jDate::forge('now');
$x = $now->format('Y') - $now->format('y');
$dt['year'] += $x;
}
Expand Down

0 comments on commit 04442a9

Please sign in to comment.