Commit 7efdc04c authored by Simonas's avatar Simonas

date format support

parent 666bc1c0
...@@ -39,9 +39,9 @@ get_header(); ...@@ -39,9 +39,9 @@ get_header();
// debug( $pod ); // debug( $pod );
?> ?>
<p> <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> <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> </p>
<br> <br>
......
...@@ -35,7 +35,7 @@ global $jobs; ...@@ -35,7 +35,7 @@ global $jobs;
<?php echo $jobs->display( 'city' ); ?> <?php echo $jobs->display( 'city' ); ?>
</td> </td>
<td class="c-jobs-list--col c-jobs-list--col-valid"> <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> </td>
</tr> </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