[ansel] lib/Gallery.php patch for date-uploaded change
Heath S. Hendrickson
heath at outerspaceconsultants.com
Tue May 18 18:47:13 PDT 2004
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.
h
-------------- next part --------------
Index: lib/Gallery.php
===================================================================
RCS file: /usr/local/horde/cvs/ansel/lib/Gallery.php,v
retrieving revision 1.61
diff -u -r1.61 Gallery.php
--- lib/Gallery.php 17 May 2004 21:49:02 -0000 1.61
+++ lib/Gallery.php 19 May 2004 01:41:54 -0000
@@ -531,7 +531,7 @@
$this->_image->reset();
$this->data['gallery'] = '-1';
- $this->data['date-uploaded'] = time();
+ $this->data['date-uploaded'] = date("r");
if (is_array($image)) {
$this->data['filename'] = $image['filename'];
More information about the ansel
mailing list