[Resolved] WP 3.0 Post timestamps are broken

Having Problems? Need Help? Post here!

[Resolved] WP 3.0 Post timestamps are broken

Postby mig » Mon Jun 07, 2010 2:11 pm

get_the_time returns incorrect times, gmt when non-gmt is needed. I just noticed this testing 3.0RC2, maybe earlier test releases are affected too.

QT: add_filter('get_the_time','qtrans_timeFromPostForCurrentLanguage',0,3);

That filter has no way of working corretly:

WP: return apply_filters('get_the_time', $the_time, $d, $post);
QT: function qtrans_timeFromPostForCurrentLanguage($old_date, $format = '', $gmt = false) {

Again I suggest optimizing the filters so that they are not run multiple times:
- remove the_time
- remove get_the_time
- add get_post_time

And there are a LOT of similar double or triple filtering issues.
Last edited by mig on Wed Jul 07, 2010 12:53 pm, edited 1 time in total.
mig
 
Posts: 51
Joined: Thu Jun 18, 2009 8:57 pm
Location: Tampere, Finland

Re: WP 3.0RC2 Post timestamps are broken

Postby mig » Mon Jun 14, 2010 2:10 pm

WordPress 3.0-RC3-15241 has the same issue.
mig
 
Posts: 51
Joined: Thu Jun 18, 2009 8:57 pm
Location: Tampere, Finland

Re: WP 3.0RC2 Post timestamps are broken

Postby mig » Tue Jul 06, 2010 8:18 pm

The bug is still there WP 3.0 + QT 2.5.8b (devel)

Code: Select all
echo 'Mod: '.get_the_modified_time('d.m.Y H:i').'<br>';
echo 'Tim: '.get_the_time('d.m.Y H:i').'<br>';


Mod: 28.06.2010 15:23
Tim: 28.06.2010 12:23
mig
 
Posts: 51
Joined: Thu Jun 18, 2009 8:57 pm
Location: Tampere, Finland

Re: WP 3.0RC2 Post timestamps are broken

Postby Qian Qin » Wed Jul 07, 2010 10:59 am

please check again with latest dev.
Qian Qin
Site Admin
 
Posts: 964
Joined: Thu Jun 19, 2008 12:14 pm
Location: Germany

Re: WP 3.0RC2 Post timestamps are broken

Postby mig » Wed Jul 07, 2010 12:52 pm

Seems to be fixed now, great.
mig
 
Posts: 51
Joined: Thu Jun 18, 2009 8:57 pm
Location: Tampere, Finland


Return to qTranslate Support Forum

Who is online

Users browsing this forum: Google [Bot], Google Adsense [Bot] and 12 guests