[ka-Map-users] Possible problem in tile.php

Pg pg.navone at gmail.com
Wed May 17 16:43:38 EDT 2006


With the CVS version on an XP machine tile.php doesn't generates tiles
and logs the following error:

[17-May-2006 15:38:28] PHP Warning:  gmmktime(): Windows does not
support negative values for this function in
D:\ms4w\apps\ka-map\htdocs\tile.php on line 355
[17-May-2006 15:38:28] PHP Warning:  mktime(): Windows does not
support negative values for this function in
D:\ms4w\apps\ka-map\htdocs\tile.php on line 355

My local-time is CEST (GMT+2).

In the function gmttime() I changwed the line:

   $iDelta = gmmktime(1, 1, 1, 1, 1, 1970, $aNow[8]) - mktime(1, 1, 1,
1, 1, 1970, $aNow[8]);

with:

   $iDelta = gmmktime(1, 1, 1, 1, 1, 1980, $aNow[8]) - mktime(1, 1, 1,
1, 1, 1980, $aNow[8]);


I'm not sure on the nature of the error and on the correcteness of the
solution, but it works for me.

 -Pg



More information about the ka-Map-users mailing list