From: Don S. <do...@se...> - 2004-02-05 03:39:17
|
OK it's pretty simple. In the index.php for my branch I put this as the first line of php code: putenv("TZ=3DUS/Central");=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. 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. >=20 > 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. >=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 should > 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 understand > that." >=20 > George W. Bush > May 11, 2001 > Washington, D.C. --=20 "I've changed my style somewhat, as you know. I'm less, I pontificate less, although it may be hard to tell it from this show. And I'm more interacting with people." George W. Bush February 13, 2000 =46rom NBC's Meet The Press. |