How To Set Date Time Stamp Gallery2 ??

gemsofso
gemsofso's picture

Joined: 2009-11-15
Posts: 22
Posted: Mon, 2009-11-23 22:24

Hello:

The setup module for posting day and date on home page responds well but not to the correct current day & date.

I'm thinking I need to manually adjust this data for starters to get this info correct, is this so?

And if so where do I find procedure?

Thx!

Dw

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2009-11-25 02:46

I don't understand. Can you explain a bit better with some steps?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
gemsofso
gemsofso's picture

Joined: 2009-11-15
Posts: 22
Posted: Wed, 2009-11-25 14:15

hi Dave,

ok, in the general settings editing module [Xtreme], using the date formats option, and the codes found at php.net [such as: %D or %m/%d/%y or any other time/date codes found at the php.net page], all appears normal and correct after editing and saving [on that page] but the change is not reflected on the Gallery home page, nor is the date shown on the home page regarding a day/date sequential change reflected as each new day comes and goes...

In other words, all looks correct on the editing page, but on home page the date defaults back to 3 days earlier and it remains dormant rather than active.

Thx!

Dw

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Wed, 2009-11-25 14:22

Is it perhaps that the date you're thinking of is the date of the album, rather than today's date?
From the xtreme theme documetation:
http://codex.gallery2.org/Gallery2:Themes:X_treme#1st_Page_::_Show_Gallery_date_on_1st_page_of_the_Gallery

Quote:
1st Page :: Show Gallery date on 1st page of the Gallery
Display Album's DATE on Album's first page.

 
gemsofso
gemsofso's picture

Joined: 2009-11-15
Posts: 22
Posted: Wed, 2009-11-25 14:26

I think that's exactly what it is because it always defaults back to the same date.

Was hoping, because it is the home page that the date would be the current date, so is this possible, if so, how so?

Thx!!

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Wed, 2009-11-25 14:45

Plenty of examples of what to put in a Smarty template (.tpl) file, here:
http://www.smarty.net/manual/en/language.modifier.date.format.php

eg.

{$smarty.now|date_format}

With a bit more work you can use the Gallery date format, that'll be a variable available to Smarty somewhere too.
You can use the usual techniques to display it on the home page only, if you want. Search this forum for how to do that.

 
gemsofso
gemsofso's picture

Joined: 2009-11-15
Posts: 22
Posted: Wed, 2009-11-25 14:47

Thank you, MUCH appreciated!!!