Member
Member
miqrogroove   2008-06-23, 14:27
#1

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?

Member
Member
miqrogroove   2008-06-23, 15:47
#2

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())) {

Member
Member
sbillard   2008-06-23, 16:49
#3

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.

Member
Member
miqrogroove   2008-06-23, 17:37
#4

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();`

Member
Member
sbillard   2008-06-23, 18:04
#5

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

Member
Member
cornellier   2008-11-18, 16:41
#6

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

Member
Member
cornellier   2008-11-18, 17:45
#7

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.

Member
Member
sbillard   2008-11-18, 18:51
#8

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

Member
Member
cornellier   2008-11-19, 04:57
#9

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?

Member
Member
sbillard   2008-11-22, 00:51
#10

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.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.