WordPress.org

Ready to get started?Download WordPress

Forums

Dateformate (4 posts)

  1. peterschen
    Member
    Posted 8 years ago #

    Hi Folks,

    I've recently installed two wordpress blogs for some german sites. Even if I install the german language pack and a german theme I don't get the dates on german.

    I now edited the function which displays the time and set it manually to strftime for use with set_locale an the right locale.

    I wondered why the function which displays the date on the serveral site doesn't ueses the strftime funtion. This function easily could be used for serveral formattings...

    Regards
    Christoph

  2. MichaelH
    Member
    Posted 8 years ago #

    In your Theme's Templates, if you use the Template Tags the_date() and/or the the_time() and pass NO parameters, it will use the settings from your Options->General screen.

    Also see: Formatting_Date_and_Time

  3. MichaelH
    Member
    Posted 8 years ago #


  4. peterschen
    Member
    Posted 8 years ago #

    Hi,

    but the date() function in php can't format text in different languages depending on the current locale. Thats bad. Why your'e not using strftime()?

    Regards
    Christoph

Topic Closed

This topic has been closed to new replies.

About this Topic