Date, Time Display / title information
|
Tim_j
![]()
Joined: 2002-08-15
Posts: 6715 |
Posted: Wed, 2003-05-21 12:37
|
|
Hi, what about changing the method of displaying times and dates ? echo _("File Upload Date") .":&& " . strftime("%d.%m %Y , %H:%M:%S" , $gallery->album->getUploadDate($index)) . "<br>";
$itemCaptureDate = $gallery->album->getItemCaptureDate($index);
echo _("Item Capture Date") . ":&& " . strftime("%d.%m.%Y, %H:%M:%S", mktime($itemCaptureDate['hours'], $itemCaptureDate['minutes'],$itemCaptureDate['seconds'], $itemCaptureDate['mon'],$itemCaptureDate['mday'],$itemCaptureDate['year']));
The Advantage is, that you can easier change the format and if you want you can use local settings. And second. Regards, Jens P.S.: I would send patches,but i only run this modifications in the ML |
|
| Login or register to post comments |


Posts: 5649
We definitely need to integrate your ML work back into the Gallery core. I know that it's on Beckett's to-do list so it will happen, it's just a matter of when.
I think that it's also a good idea to add the title attribute to images in navigation. What do you think Beckett, Joan, John?
Posts: 3469
Yes... this would be wonderful. (Jens, I'm so impressed that you're keeping speed with Gallery CVS updates on the ML side...) In addition to localisable dates, it would be simple enough to add a timezone field to each user. The user could then select the appropriate timezone offset for his/her location (like what we have in this phpBB forum).
I think Joan checked this in already, am I correct?
-Beckett (
)
Posts: 3469
Oops... I was thinking of the wrong "title". Yes... we can add the "title" attribute. Should we add "alt" tags while we're at it? (thus making the <img> tags XHTML compatible)
Added to the todo list.