From: Don S. <do...@se...> - 2004-02-05 18:20:22
|
Alright then if you want I'll look into adding this into the hub/branch database/files. Actually it looks like the branch prefs are stored in files anyway, similar to hub's conf/config.php. This could/should be another setting in there. Don. On Thu, Feb 05, 2004 at 08:17:22AM -0500, Matthew McNaney wrote: > I think that is a good solution. >=20 > Matt >=20 > On Wed, 2004-02-04 at 22:39, Don Seiler wrote: > > OK it's pretty simple. > >=20 > > In the index.php for my branch I put this as the first line of php code: > >=20 > > putenv("TZ=3DUS/Central");=20 > >=20 > > 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. > >=20 > > What do you guys think? > >=20 > > Don. > >=20 > > 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. > > >=20 > > > I live in Wisconsin and Wendall lives in Idaho. So we are already bo= th > > > very cool. However this fact has one side-effect. When I migrated s= ome > > > 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. > > >=20 > > > 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 shou= ld > > > be. I know that MoveableType does this for each site. > > >=20 > > > Don. > > >=20 > > > --=20 > > > "Presidents, whether things are good or bad, get the blame. I unders= tand > > > that." > > >=20 > > > George W. Bush > > > May 11, 2001 > > > Washington, D.C. > --=20 > Matthew McNaney > Internet Systems Architect > Electronic Student Services > Appalachian State University > Phone: 828-262-6493 > http://phpwebsite.appstate.edu > http://ess.appstate.edu --=20 "I do not believe we've put a guilty --- I mean innocent --- person to death in the state of Texas." George W. Bush June 16, 2000 =46rom National Public Radio's "All Things Considered". |