From: Matthew M. <ma...@tu...> - 2004-02-05 13:21:18
|
I think that is a good solution. Matt On Wed, 2004-02-04 at 22:39, Don Seiler wrote: > OK it's pretty simple. > > In the index.php for my branch I put this as the first line of php code: > > putenv("TZ=US/Central"); > > I think what should be done is the hub/branch should have this > preference stored in a database for that hub or branch. By default it > can be null, in which case phpWS won't try to do the putenv and it will > default to the system timezone. If, however, it is set, then Core can > all the putenv line using the TZ specified for that hub/branch. > > What do you guys think? > > Don. > > On Wed, Feb 04, 2004 at 09:45:00AM -0600, Don Seiler wrote: > > Wendall mentioned to me offline that there may have been a fix but was > > never checked in for my problem. > > > > I live in Wisconsin and Wendall lives in Idaho. So we are already both > > very cool. However this fact has one side-effect. When I migrated some > > phpws sites to his server, suddenly all the times for calendar and > > leaguesite games were off two hours. I'm assuming this is because his > > myqsl database is set to Pacific time, where I am in Central time. > > > > Is there currently a way, or should there be, to define the Time Zone > > for a site, as well as for each branch of a site. I think there should > > be. I know that MoveableType does this for each site. > > > > Don. > > > > -- > > "Presidents, whether things are good or bad, get the blame. I understand > > that." > > > > George W. Bush > > May 11, 2001 > > Washington, D.C. -- Matthew McNaney Internet Systems Architect Electronic Student Services Appalachian State University Phone: 828-262-6493 http://phpwebsite.appstate.edu http://ess.appstate.edu |