Jump to content

German Output Using Time Function


Saphod

Recommended Posts

Hi!

 

I am using WordPress (wordpress.org) on an offline XAMPP installation.

 

When I use "the_time()" - a WP-function that is supposed to show the time and date of the post - I get a German output ('cause I am German and using a German Windows XP).

 

So, basically it says "Westeuropäische Sommerzeit" instead of "CEST".

 

More here (where no one could help me so far):

http://wordpress.org/support/topic/169785

 

Any ideas?

Link to comment
Share on other sites

the_time is a Wordpress function that gets certain post information about the date and time from the database.

 

Look here in the cross reference of WP 2.5:

http://phpxref.com/xref/wordpress/nav.html?wp-includes/general-template.php.source.html#l791

 

The way I use it is

<?php the_time('F jS, Y @ H:i:s O (T)') ?>

where 'T' is supposed to say CEST or CET, not the German expression.

 

I am afraid it might be a problem with the XAMPP localization?!?

 

Can XAMPP be already preconfigured as German?

Link to comment
Share on other sites

OK, but I do not know if Wordpress works with this, because I think it only affects strftime(), not date() or time(), right?

 

Is there a way to configure PHP's localization in the PHP config files?

 

I know a little bit about the usage of PHP, but I have no idea about customization/configuration at all.

Same with Apache and MySQL, BTW... usage: yes, config: no idea... :-)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.