• Resolved SeanAUS120

    (@seanaus120)


    How can I display 2 different dates on my site?

    I’ve made a shortcode to display the first date (my WP site’s time which is GMT+2)

    function displaydate(){
    return date('g:i a');
    }
    add_shortcode('date', 'displaydate');

    But now I want to make a new shortcode to display a second time which is GMT+10. I can’t find any documentation to add the GMT offset to my shortcode?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How can I display 2 different dates?’ is closed to new replies.