| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 4 |
| 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 | |||
| 54 |