bugfix from David Desquiens for WIN problem

This commit is contained in:
reinerj 2004-01-28 00:46:30 +00:00
parent cca1d7d7bb
commit 75df9443b0

View File

@ -1,16 +1,16 @@
<?php <?php
/**************************************************************************\ /**************************************************************************\
* phpGroupWare API - Commononly used functions * * eGroupWare API - Commononly used functions *
* This file written by Dan Kuykendall <seek3r@phpgroupware.org> * * This file written by Dan Kuykendall <seek3r@phpgroupware.org> *
* and Joseph Engo <jengo@phpgroupware.org> * * and Joseph Engo <jengo@phpgroupware.org> *
* and Mark Peters <skeeter@phpgroupware.org> * * and Mark Peters <skeeter@phpgroupware.org> *
* and Lars Kneschke <lkneschke@linux-at-work.de> * * and Lars Kneschke <lkneschke@linux-at-work.de> *
* Functions commonly used by phpGroupWare developers * * Functions commonly used by eGroupWare developers *
* Copyright (C) 2000, 2001 Dan Kuykendall * * Copyright (C) 2000, 2001 Dan Kuykendall *
* Copyright (C) 2003 Lars Kneschke * * Copyright (C) 2003 Lars Kneschke *
* -------------------------------------------------------------------------* * -------------------------------------------------------------------------*
* This library is part of the phpGroupWare API * * This library is part of the eGroupWare API *
* http://www.phpgroupware.org/api * * http://www.egroupware.org *
* ------------------------------------------------------------------------ * * ------------------------------------------------------------------------ *
* This library is free software; you can redistribute it and/or modify it * * This library is free software; you can redistribute it and/or modify it *
* under the terms of the GNU Lesser General Public License as published by * * under the terms of the GNU Lesser General Public License as published by *
@ -1411,7 +1411,8 @@
$format .= 'H:i'; $format .= 'H:i';
} }
} }
if(PHP_OS == 'Windows' && (int)$t < 21600) if((PHP_OS == 'Windows'||PHP_OS == 'WINNT') && (int)$t < 21600)
/*if(PHP_OS == 'Windows' && (int)$t < 21600)*/
{ {
$t = 21600; $t = 21600;
} }