Support » Plugin: CFS Options Screens » Wrong date

  • Hello, i can’t get a correct date on a post, the date is 09 MARZO 2015 but the CFS shows 09 MARZO 1915
    I have a foreach like this:

    <?php
    		$press_list						= CFS()->get('press_list');
    		if ( is_array ($press_list) ) {
    			if ( count($press_list) > 0 ) {
    				foreach ($press_list as $press) {
    					$cfs_press_title				= $press['cfs_press_title'];
    					$cfs_press_date					= $press['cfs_press_date'];
    					$cfs_press_text					= $press['cfs_press_text'];
    					$cfs_press_link_text		= $press['cfs_press_link_text'];
    					$cfs_press_attachment		= $press['cfs_press_attachment'];
    ?>

    And the echo like this:

    <time><?php echo date_i18n ( 'd F Y', strtotime($cfs_press_date) ); ?></time>

    https://wordpress.org/plugins/cfs-options-screens/

  • The topic ‘Wrong date’ is closed to new replies.