Hi people,
I have researched this a bit and I think I have the answer.
In line 37 of the code
$date = date( 'Ymd' );
needs to be replaced with
$date = the_date( 'Ymd' );
The force of this, I think, is that it is a wordpress command and the date is then retrieved from the wordpress install. The format currently I think is php and retrieves the UTC date.
I am no expert and don’t claim anything, however if it is correct or even if it just works, It may be useful in updating the code for everyone. I have edited my local install and it seems to be performing correctly for me.
Salut les gens,
Je l’ai étudié cela un peu et je pense que je dois la réponse .
Dans la ligne 37 du code
$ Date = date ( ' Ymd ' ) ;
doit être remplacé par
$ date = the_date ( ' Ymd ' ) ;
La vigueur de la présente , je pense , est qu’il est une commande wordpress et la date est ensuite récupéré à partir du wordpress installer . Le format actuellement je pense est php et récupère la date UTC .
Je ne suis pas expert et je ne prétends rien, mais si elle est correcte ou même si elle fonctionne, tout simplement , il peut être utile pour mettre à jour le code pour tout le monde . Je l’ai édité installer mon local et il semble être l’exécution correcte pour moi .
my friends,
I have researched this a bit further and I think I have a better answer.
In line 37 of the code
$date = date( ‘Ymd’ );
needs to be replaced with
$date = current_time( ‘Ymd’ );
The force of this, I think, is that it is a wordpress command and the date is then retrieved from the wordpress install. The code currently retrieves UTC (GMT) date.
I am no expert and don’t claim anything, however if it is correct or even if it just works, It may be useful in updating the code for everyone. I have edited my local install and it seems to be performing correctly for me.
I know I feel I like am talking to myself, whilst yesterday option seems to work correctly this may be another option.
date = date_i18n('Y,m,d');
Not sure which is better as they both seem to return the correct data.
Plugin Author
Luc D
(@lucdlb)
Thanks Philipp for your research.
Did not think of the date (although I’ve been confronted to that very problem in the past) thing. I’m gonna change that in the next version.
Am gonna add the Tags you sugested too.
Thanks for your support.