Your Time:
Our Time:
← Back to discussions

how can i change the date?

Need help with a different issue? Search the forums or open a new ticket.
Open a support ticket

This topic has 4 replies, 2 voices, and was last updated 11 years, 11 months ago by liconet.

  • 2014-09-23 at 6:54 pm
    Support Expired
    #5417
    liconet
    Participant
    • Topics: 5
    • Replies: 13
    • Total posts: 18
    • Post count: 15

    hi,
    how can i change the date from 2014-02-14 to 14.02.2014?

    sincerly
    -Guido

    • This topic was modified 11 years, 12 months ago by liconet. Reason: i need this for the template-events.php and each single event
    2014-09-23 at 8:25 pm
    #5421
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    It will be there in the wordpress settings general.

    2014-09-24 at 1:02 pm
    Support Expired
    #5429
    liconet
    Participant
    • Topics: 5
    • Replies: 13
    • Total posts: 18
    • Post count: 15

    in the wordpress settings general i have this format: d.m.Y
    but for the “Event” template and in the single events its: 2014-02-14

    i tried to change it also in folder framework/custom-meta/meta-generator.php on line 290

    
    $eventdate = get_post_meta( $post->ID, $field['id'], true );
    
    if( $eventdate !='' ){
    if( is_numeric( $eventdate ) ){
    $meta= date( $default_date, get_post_meta( $post->ID, $field['id'], true) );
    }else{
    $meta  = $eventdate;
    $atp_defaultdate = 'dd-mm-yy';
    }
    }
    

    and in framework/custom-meta/events-meta.php on line 297

    
    'fields'=> array(
    array(
    'name'	=> __('Events Date','ATP_ADMIN_SITE'),
    'desc'	=> 'Type the text you wish to display in the Events Time element',
    'id'	=> 'event_date',
    'title'	=> 'Event  & Date',
    'std'	=> date('dd-mm-yy'),
    'type'	=> 'dateformat',
    
    2014-09-25 at 12:41 pm
    #5442
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    You were not specific for that events i thought for something else anyway for events you can’t set the date format in different formats. We will see if we can add a new formats in the coming updates for the theme where you can have some variations for the dates display as well. But currently its not there in the theme options you need to hardcode the php files.

    2014-10-08 at 12:21 pm
    Support Expired
    #5623
    liconet
    Participant
    • Topics: 5
    • Replies: 13
    • Total posts: 18
    • Post count: 15

    Ok then i will wait for the next update

    -Guido

You must be logged in to reply to this topic.