[Thread Prev][Thread Next][Thread Index]

Re: Timezone Conflict



>
>NO!=20
>NO NO NO!
>
>Can I possibly be more emphatic!  Do NOT comment out that line
>of code, it's there for a reason. =20
>
>What is happening here is that PilotManager is protecting you from
>a bug in the Solaris 2.5.1/2.6 operating systems.  These OS' have=20
>a bug which makes it calculate the time incorrectly in certain=20
>timezones.  What happens is the localtime(0) call does not account=20
>for DST properly and the time it calculates is off by 1 hour.  Since
>very few apps use localtime(0) for their base calculations, this=20
>doesn't show up very often.  When PilotManager starts up, it checks
>your OS to see if you have the bug and will not let you sync if you
>have it, so that it won't break your calendar.  However, if you=20
>short-circuit PilotManager into working anyway, you're going to=20
>definitely cause damage to your calendar.
>
>There are two ways to fix this.  If you make your timezone explicit
>(ie, change it from "US/Pacific" to "PST8PDT" this problem.=20
>Otherwise, if you install the patch, everything will work as it=20
>did before (well, for SyncCM -- Alan can you verify this for=20
>SyncTime?). SyncCM will take into account your new timezone and=20
>will NOT rearrange your Pilot appointments.



The Sun bug id is #4067374.

But I fail to see what's the difference between US/Pacific and PST8PDT, as
they're both the same zonefile.

The version of perl I have installed, version 5.004_04 doesn't call
localtime(0), but rather localtime(2*$DAY).  Perl 5.003 does call
timelocal(0).


So it would appear that if you use a later version of perl, the check in
Pilotmanager can safely be removed.

I'm not quite sure why perl things that timelocal(0) says anything useful 
about the current offset from GMT and/or summertime.


Casper

------------------------------------------------------------------------
***********************************************************
*             This is a public mailing list!              *
* Please do not publish Sun proprietary information here! *
*        -  -  -  -  -  -  -  -  -  -  -  -  -  -         *
*             http://www.moshpit.org/pilotmgr             *
***********************************************************


SourceForge.net Logo