Skip to content

Commit

Permalink
Revert back documentation change in API interface
Browse files Browse the repository at this point in the history
  • Loading branch information
bnymn committed Oct 1, 2018
1 parent ddeaf36 commit 6cc9034
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ public function convertConfigTimeToUtc($date, $format = 'Y-m-d H:i:s')
}

$date->setTimezone(new \DateTimeZone('UTC'));

return $date->format($format);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ public function formatDate(

/**
* Gets the scope config timezone
*
* @param string $scopeType
* @param string $scopeCode
* @return string
Expand All @@ -122,7 +121,6 @@ public function getConfigTimezone($scopeType = null, $scopeCode = null);
public function isScopeDateInInterval($scope, $dateFrom = null, $dateTo = null);

/**
*
* @param string|\DateTimeInterface $date
* @param int $dateType
* @param int $timeType
Expand All @@ -141,14 +139,10 @@ public function formatDateTime(
);

/**
* Convert date from config timezone to Utc.
*
* If pass \DateTime object as argument be sure that timezone is the same with config timezone
*
* @param string|\DateTimeInterface $date
* @param string $format
* @throws LocalizedException
* @return string
* @since 100.1.0
*/
public function convertConfigTimeToUtc($date, $format = 'Y-m-d H:i:s');
}

0 comments on commit 6cc9034

Please sign in to comment.