[ansel] lib/Gallery.php patch for date-uploaded change

Chuck Hagenbuch chuck at horde.org
Tue May 18 20:40:10 PDT 2004


Quoting "Heath S. Hendrickson" <heath at outerspaceconsultants.com>:

> Attached is a patch that sets the date-uploaded to be the RFC date
> representation (date("r")) instead of the epoch (time()).
>
> This makes the field useful for searches.

date('r') isn't really optimal for searches, either. I'd much rather see it be
stored as YYYY-MM-DD HH:MM:SS. That way it's both searchable, sortable, and
easily turned into a timestamp/formatted other ways.

-chuck

--
"Regard my poor demoralized mule!" - Juan Valdez


More information about the ansel mailing list