Saphod Posted April 21, 2008 Share Posted April 21, 2008 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? Quote Link to comment Share on other sites More sharing options...
Saphod Posted April 24, 2008 Author Share Posted April 24, 2008 Anyone, please? ??? Quote Link to comment Share on other sites More sharing options...
effigy Posted April 24, 2008 Share Posted April 24, 2008 What's the source of the_time? Quote Link to comment Share on other sites More sharing options...
Saphod Posted April 25, 2008 Author Share Posted April 25, 2008 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? Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted April 25, 2008 Share Posted April 25, 2008 See the setlocale() function. You should be able to change the output with that. Quote Link to comment Share on other sites More sharing options...
Saphod Posted April 25, 2008 Author Share Posted April 25, 2008 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... :-) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.