coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: pftq on February 20, 2007, 01:13:55 AM

Title: Using PHP Variable for Timezone Setting
Post by: pftq on February 20, 2007, 01:13:55 AM
I have a file that is included by everything on the site to determine the timezone.  Then I use the variable in the file, which is the timezone.

What file in Coppermine is associated with the timezone of the gallery? What I'm trying to do is have the timezone set to the PHP variable.

Something like: $coppermine_time=$timezone
Title: Re: Using PHP Variable for Timezone Setting
Post by: Nibbler on February 20, 2007, 12:20:02 PM
Depends what you use as the timezone. If it's something like -5 then you can set $CONFIG['time_offset'] to that in init.inc.php
Title: Re: Using PHP Variable for Timezone Setting
Post by: pftq on February 21, 2007, 01:01:52 AM
Thank you that's exactly what I wanted to know. :D