Display date *and* time under photo?

Ericular

Joined: 2003-05-08
Posts: 80
Posted: Mon, 2005-05-02 20:04

Has anybody implemented the display of both the date and time being displayed under each photo in a gallery? I "hacked" G1 to do this, but the G2 code is a little more over my head.

If not, I'll look into it. Just didn't want to waste time if somebody's already done this.

Thanks,
Eric

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2005-05-02 22:00

2 choices:
edit modules/core/classes/GalleryTemplateAdapter.class function date() and change default date/time format, to affect dates all over.
or, find {g->date} in layouts/matrix/templates/albumBody.tpl and singleBody.tpl and add format=".." as a parameter there.. see php.net/strftime for how to write the format..

 
Ericular

Joined: 2003-05-08
Posts: 80
Posted: Tue, 2005-05-10 00:02

Awesome, works great. Thanks.