Title: Function to filter the_time
Last modified: August 20, 2016

---

# Function to filter the_time

 *  [baudesign](https://wordpress.org/support/users/baudesign/)
 * (@baudesign)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/function-to-filter-the_time/)
 * I am working on implementing the xili-language plugin within the iA3 template.
 * This filter:
 *     ```
       /** * in twentyten theme: display the date of current post */
       function xiliml_get_translated_date($thedate, $format = '') {
       	$theformat = (''== $format) ? get_option('date_format') : $format ;
       	return the_xili_wp_local_time($theformat,strtotime(xiliml_get_the_date('m/d/Y H:i')));
       }
       add_filter('get_the_date','xiliml_get_translated_date',10,2);
       ```
   
 * …that is part of the plugin, clearly targeting the twentyten theme, filters out
   my date; it just disapears!:
 * `<time datetime="<?php the_time('c') ?>" pubdate="pubdate"><?php the_date() ?
   ></time>`
 * What can I do, beside stripping it out of the plugin, to correct the situation?
 * Thanks
 * Pat

The topic ‘Function to filter the_time’ is closed to new replies.

 * ![](https://ps.w.org/xili-language/assets/icon-256x256.png?rev=970404)
 * [xili-language](https://wordpress.org/plugins/xili-language/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/xili-language/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/xili-language/)
 * [Active Topics](https://wordpress.org/support/plugin/xili-language/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/xili-language/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/xili-language/reviews/)

## Tags

 * [iA3](https://wordpress.org/support/topic-tag/ia3/)
 * [the_time](https://wordpress.org/support/topic-tag/the_time/)

 * 0 replies
 * 1 participant
 * Last reply from: [baudesign](https://wordpress.org/support/users/baudesign/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/function-to-filter-the_time/)
 * Status: not resolved