Support » Plugin: qTranslate » qTranslate is breaking my dates

  • I use the following PHP code in my footer to display the copyright information for my site:

    <span class="copyright">
    	$post_age = date( 'Y' ) - get_the_time( 'Y' );
    	if($post_age > 1 ) { ?>
            <?php echo the_date( 'Y', '&copy; ' ); ?>-<?php echo date( 'Y' ); ?>
            <?php bloginfo( 'name', 'description' ); ?>
            <?php } else { ?>
            <?php echo the_date( 'Y', '&copy; ' ); ?>
            <?php bloginfo( 'name', 'description' ); ?>
            <?php }; ?>

    It’s supposed to display “Copyright 2013” on a page that was created this year and “Copyright 2009-2013” for a page that was created in 2009. This was working perfectly well until I installed qTranslate. If I put in a custom date format for English under settings, it displays “Copyright September 6, 2013-2013,” which is no good. How can I make this work with qTranslate?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi abelluscio,

    Go to qtranslate advanced settings, for ‘Date / Time Conversion’ field choose the fourth option and save settings.
    Hope this will help you.

    Thread Starter A. Belluscio


    Now, with the above code, it prints “Copyright 2013-2013,” for a page/article made this year. That’s better, but it’s still not how it’s supposed to work. Any ideas?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘qTranslate is breaking my dates’ is closed to new replies.