ZenphotoCMS Forum
Album Dates Never Update - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Album Dates Never Update (/thread-3145.html)



Album Dates Never Update - miqrogroove - 2008-06-23

I just uploaded some new photos, and the date on the album stayed at 6/21/08. Is that normal? What's the point of showing the album date if it's always the same?




Album Dates Never Update - miqrogroove - 2008-06-23

If I delete this at line 74 of class-image.php is that a good way to get the date to update?

if (is_null($alb->getDateTime())) {




Album Dates Never Update - sbillard - 2008-06-23

That will cause the date to be changed to the date of any new images that are found. (Of course you need to delete the corresponding closing brace.)

The original concept was that the album date would represent when the album was created.




Album Dates Never Update - miqrogroove - 2008-06-23

Oh, I see. So I should copy the code from right above that? Like...

`$this->album->setDateTime(strftime('%Y/%m/%d %T', filemtime($this->localpath)));

$this->album->save();`




Album Dates Never Update - sbillard - 2008-06-23

Or just wait for tonight's nightly build which will have an option to do this.




Album Dates Never Update - cornellier - 2008-11-18

Was this done? Which file has the code to implement this option?




Album Dates Never Update - cornellier - 2008-11-18

Ignore my last comment, I upgraded to 1.2.1 and I now see the admin option "Use latest image date". I set that to "on" and refreshed my metadata, but the album date still uses an older date.




Album Dates Never Update - sbillard - 2008-11-18

It will only change when a new image is discovered. Not when the metadata is refershed.




Album Dates Never Update - cornellier - 2008-11-19

Just added a new image to an existing album and the date didn't change. Please propose a test for this, or should I log a bug?




Album Dates Never Update - sbillard - 2008-11-22

Well, you should first verify

  1. the option is really set
  2. the date (as shown in the image list) of your photo.

If #1 is set and #2 does not match the album date then there is a problem. However, On the current nightly build it works for me.