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
https://forums.phpfreaks.com/topic/102096-german-output-using-time-function/
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?

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... :-)

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.