lib/Gallery.php patch for date-uploaded change
"Heath S. Hendrickson" <[email protected]>
| Newsgroups | gmane.comp.horde.ansel |
|---|---|
| Message-ID | <[email protected]> |
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
--
ansel mailing list - Join the hunt: http://horde.org/bounties/#ansel
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: [email protected]
Gallery.php.patch_formatDateUploaded
(text/plain, 585 B)
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'];