[wp-testers] the_time bug? feature? lack of php knowledge?

Luc Saint-Elie lstelie at gmail.com
Mon Oct 8 06:45:48 GMT 2007


Hello,

I'm trying to solve my problem (displaying a user notice is a post is  
older than a year) and when I do

$post_year = the_time('Y');
echo intval($post_year);

For a 2007 post for example, the value displayed is 20070, not 2007

Is not normal ?

Thanks

Luc



More information about the wp-testers mailing list