Support » Plugins » Hacks » get_the_time('j F Y') work different in archive.php and single.php

  • Hi, i’ve a problem with the function get_the_time(‘j F Y’).

    This function work perfectly in a single.php and return me the data in Italian.

    I have WP in Italian and setup data in admin page with time zone Rome.

    This function don’t work in archive.php and return me the data in English.

    Example:

    single.php: 24 maggio 2013

    archive.php 24 May 2013

    you have any idea to solve this???

    Thanks.

Viewing 1 replies (of 1 total)
  • It’s not so much about the timezone rather than making use of the translation files of your WordPress installation.

    You can add more arguments to your function call to achieve this:
    get_the_time( 'j F Y', TRUE, get_the_ID(), TRUE );

    The first TRUE refers to GMT and the last one to translation.

Viewing 1 replies (of 1 total)
  • The topic ‘get_the_time('j F Y') work different in archive.php and single.php’ is closed to new replies.