Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

Date and Time

Quote Reply
Date and Time

I want to place this function on one of my templates but it is using the time that is on the server which is 2 hours behind. Anyone know of a way to add 2 hours to this function??


<%GT::Date::date_get('', "%ddd%. %mmm% %d%, %yyyy% %h%:%MM%")%>
Quote Reply
Re: [pcmike] Date and Time In reply to

Following global was suggested (and works) for adding days:

#Code Courtsey Chaz
sub {
require GT::Date;
my $date = GT::Date::date_get();
return GT::Date::date_add($date, 366);