From: Chris H. <hoo...@bi...> - 2006-03-09 20:38:46
|
Thank you for your reply. The question boils down to: why is SM on server B reporting time correctly in EST, while SM on A and C drop out to GMT? The configuration of B and C would seem to be nearly identical, while A is odd server out with different versions of php and SM. None of them are on php 5.1.x yet. Server A is on php 5.0.2. I know that there are preferences individual users can set to fix this. But, since I have one server that seems to be doing it correctly, I'd like to know why and then fix the others. I have hundreds of users, and getting them all to "fix their settings" can be a bit of a problem. I've been looking at the php configurations. If I do `php -i | less`, I find that all three servers have the same group of settings for TZ: TZ =3D> US/Eastern _SERVER["TZ"] =3D> US/Eastern _ENV["TZ"] =3D> US/Eastern I haven't been able to find any differences that I can point to as possibly causing 2 servers to report GMT while the other 1 reports EST. --------------- Chris Hoogendyk - O__ ---- Systems Administrator c/ /'_ --- Biology & Geology Departments (*) \(*) -- 140 Morrill Science Center ~~~~~~~~~~ - University of Massachusetts, Amherst=20 <hoo...@bi...> ---------------=20 Erd=C3=B6s 4 Tomas Kuliavas wrote: >> I found a few things related to this on google, in the SM documentatio= n, >> and on the archives for the list, but nothing that answered the questi= on. >> >> I have 3 servers that are very similar. Each is a Sun E250 running >> Solaris 9. Call them A, B, & C, configured last August, November and >> this January respectively. A has php 5.0.2 and squirrelmail 1.4.4. It = has >> moderate useage and doesn't use php for other things. B has php 4.4.2 = and >> squirrelmail 1.4.6. It has very light usage of mail, but heavier usage= of >> the web and uses php extensively. C has php 4.4.2 and squirrelmail 1.4= .6 >> also. It has heavy useage of mail, and moderate useage of the web with >> light use of php for the web. >> >> I personally built all 3 servers, secured them, configured ntp and all >> applications. `date` on all 3 reports the time and date correctly. >> >> Squirrelmail on A and C reports time as GMT. In the mail headers it pu= ts >> a line that reports GMT. The subsequent line from sendmail reports the= time >> in EST. On the Web page, left panel, Squirrelmail reports the time as = GMT >> but does not indicate that it is GMT -- it's simply 5 hours later than= one >> would expect. >> =20 > > Switch to international time format in folder prefs and see reported ti= me > zone. > > =20 >> Squirrelmail on B reports time as EST. >> >> >> I recently updated php and Squirrelmail on B and C and followed >> identical procedures on both. >> >> I did not update A, because the php 5.1.2 configure script failed. >> Separate issue, but explains the difference in versions. >> >> >> If I go to my personal options on the web connection and specify a tim= e >> zone of America/New_York, I get the correct display of time for myself. >> However, this does not fix the problem for all my users. I also cannot >> say if this is a new problem or an old problem. Nobody reported it unt= il >> this week. I also looked at some pref files in smdata on all 3 and did= n't >> see any specifications of time zones. >> =20 > > Then SquirrelMail is running in default time zone and PHP functions fai= l > to report your server's time zone correctly. > > =20 >> Seems like there must be some sort of global configuration somewhere >> that controls this. But, I couldn't find it. I even poked around in >> Squirrelmail's code a bit, but I'm not a php programmer. >> =20 > > SquirrelMail does not have global time zone configuration option. It us= es > your server's time zone by default. If you use PHP 5.1.x - date functio= ns > are rewritten and SquirrelMail does not support > date_default_timezone_set() function yet. > =20 |