Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix petite salade autour de la suppression des resultats de recherche…
… trop vieux : - on utilise le champ maj comme indice de peremption qui est au format timestamp - sous mysql, le champ maj est donc rempli avec la date mysql equivalente a NOW(), mais la compairaison issue de spip_mysql_date_proche() se faisait sur la date php - sous sqlite, le champ maj est donc rempli avec la date sqlite, non equivalente a NOW() qui est fourni par php - dans la recherche on faisait une fois la comparaison avec NOW() avant recherche et une fois la comparaison avec la date php On remets donc tout d'equerre : - dans preparer_recherche on utilise toujours sql_date_proche() pour la comparaison - dans req/mysql on utilise NOW() si sql_date_proche concerne un champ maj (c'est un peu un hack mais bon) - sous sqlite on emule le format timestamp avec une date php qui est bien coherente avec le NOW() fournit lui meme par une date php
- Loading branch information
Showing
3 changed files
with
9 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters