Commit 7efdc04c authored by Simonas's avatar Simonas

date format support

parent 666bc1c0
......@@ -39,9 +39,9 @@ get_header();
// debug( $pod );
?>
<p>
Paskelbta: <?php echo date("Y-m-d", strtotime( $pod->field( 'post_date' ) ) ); ?>
Paskelbta: <?php echo date_i18n( get_option( 'date_format' ), strtotime( $pod->field( 'post_date' ) ) ); ?>
<br>
Galioja iki: <?php echo date("Y-m-d", strtotime( $pod->field( 'valid' ) ) ); ?>
Galioja iki: <?php echo date_i18n( get_option( 'date_format' ), strtotime( $pod->field( 'valid' ) ) ); ?>
</p>
<br>
......
......@@ -35,7 +35,7 @@ global $jobs;
<?php echo $jobs->display( 'city' ); ?>
</td>
<td class="c-jobs-list--col c-jobs-list--col-valid">
<?php echo $jobs->display( 'valid' ); ?>
<?php echo date_i18n( get_option( 'date_format' ), strtotime( $jobs->field( 'valid' ) ) ); ?>
</td>
</tr>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment