Support » Plugin: AMP » Date format

  • Resolved immermanalu



    Is it possible to display “Traditional view” date format such as 11 August 2019 instead of “2 days ago” format?

    Thank you so much

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support James Osborne


    As you are using AMP reader mode you could create a template override. To do so copy the meta-time.php file from the plugins templates folder (wp-content/plugins/amp/templates) and place that inside a new folder which you must title amp in your active themes root directory. Replace the following:

    /* translators: %s: the human-readable time difference. */
    				__( '%s ago', 'amp' ),
    				human_time_diff( $this->get( 'post_publish_timestamp' ), current_time( 'timestamp' ) )

    with the following:

    You can change the date format to any you prefer.

    Thread Starter immermanalu


    Dear James,

    It’s so beautiful, it works successfully, thank you so much 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Date format’ is closed to new replies.