| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | * |
||
| 23 | * @return string |
||
| 24 | * |
||
| 25 | * @throws Exception |
||
| 26 | */ |
||
| 27 | public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) |
||
| 28 | { |
||
| 29 | // save configured timezone |
||
| 30 | $timezone = date_default_timezone_get(); |
||
| 31 | // set timezone to UTC |
||
| 32 | date_default_timezone_set('UTC'); |
||
| 33 | |||
| 34 | $date = $arguments['date']; |
||
| 35 | if ($date instanceof \DateTimeInterface) { |
||
| 36 | $renderChildrenClosure = function () use ($date) { |
||
| 50 |