cvs: php-src /ext/standard sunfuncs.c
| From: | Pierre-Alain Joye | Date: | Thu, 10 Feb 2005 14:31:33 +0000 |
| Subject: | cvs: php-src /ext/standard sunfuncs.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-30347@lists.php.net to get a copy of this message | ||
pajoye Thu Feb 10 09:31:33 2005 EDT
Modified files:
/php-src/ext/standard sunfuncs.c
Log:
- fix #30745 and #31853 (php-bugs at demark dot org, pierre)
http://cvs.php.net/diff.php/php-src/ext/standard/sunfuncs.c?r1=1.9&r2=1.10&ty=u
Index: php-src/ext/standard/sunfuncs.c
diff -u php-src/ext/standard/sunfuncs.c:1.9 php-src/ext/standard/sunfuncs.c:1.10
--- php-src/ext/standard/sunfuncs.c:1.9 Sun Sep 5 04:13:56 2004
+++ php-src/ext/standard/sunfuncs.c Thu Feb 10 09:31:32 2005
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: sunfuncs.c,v 1.9 2004/09/05 08:13:56 momo Exp $ */
+/* $Id: sunfuncs.c,v 1.10 2005/02/10 14:31:32 pajoye Exp $ */
/*
The sun position algorithm taken from the 'US Naval Observatory's
@@ -204,7 +204,7 @@
switch (retformat) {
case SUNFUNCS_RET_TIMESTAMP:
- RETURN_LONG((int) (time - (time % (24 * 3600))) + (int) (60 * ret));
+ RETURN_LONG((int) (time - (time % (24 * 3600))) + (int) (3600 * ret));
break;
case SUNFUNCS_RET_STRING:
N = (int) ret;