Skip to content

Commit

Permalink
remove timezone parameter specific if
Browse files Browse the repository at this point in the history
  • Loading branch information
gregor-j committed Feb 28, 2020
1 parent 4685556 commit bfbcf49
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/SapDateTime.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,16 +82,11 @@ public static function createFromSapWeek($sapWeek, $timezone = null)
public static function createFromFormat(
$format,
$time,
$timezone = null
\DateTimeZone $timezone = null
) {
if ($format === static::SAP_WEEK) {
return static::createFromSapWeek($time, $timezone);
}
if ($timezone === null) {
return parent::createFromFormat($format, $time);
}
//@codeCoverageIgnoreStart
return parent::createFromFormat($format, $time, $timezone);
//@codeCoverageIgnoreEnd
}
}

0 comments on commit bfbcf49

Please # to comment.