| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | public function format_i18n( $format = null ) { |
||
| 43 | $format = ( null === $format ) ? __( 'D j M Y \a\t H:i', 'pronamic_ideal' ) : $format; |
||
| 44 | |||
| 45 | $date = clone $this; |
||
| 46 | |||
| 47 | $date->setTimezone( DateTimeZone::get_default() ); |
||
| 48 | |||
| 49 | $result = date_i18n( $format, $date->getTimestamp() + $date->getOffset(), true ); |
||
| 50 | |||
| 51 | return $result; |
||
| 52 | } |
||
| 54 |