Album Dates Never Update

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?

Comments

  • 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())) {`
  • 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.
  • 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();`
  • Or just wait for tonight's nightly build which will have an option to do this.
  • Was this done? Which file has the code to implement this option?
  • 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.
  • It will only change when a new image is discovered. Not when the metadata is refershed.
  • 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?
  • 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.
Sign In or Register to comment.