[Tickets #685] NEW: MDY vs DMY

bugs at bugs.horde.org bugs at bugs.horde.org
Tue Oct 12 00:35:51 PDT 2004


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=685
-----------------------------------------------------------------------
 Ticket     | 685
 Created By | ctnpublic-horde at yahoo.com
 Summary    | MDY vs DMY
 Queue      | Horde Base
 Version    | HEAD
 State      | Unconfirmed
 Priority   | 1. Low
 Type       | Bug
 Owners     | 
-----------------------------------------------------------------------


ctnpublic-horde at yahoo.com (2004-10-12 00:35) wrote:

_calculateMoonPhases() has month and day swapped when constructing
timestamp.

cvs diff -u lib/Block/moon.php
Index: lib/Block/moon.php
===================================================================
RCS file: /repository/horde/lib/Block/moon.php,v
retrieving revision 1.14
diff -u -r1.14 moon.php
--- lib/Block/moon.php  1 Jun 2004 10:05:32 -0000       1.14
+++ lib/Block/moon.php  12 Oct 2004 07:35:29 -0000
@@ -162,7 +162,7 @@
             /* Convert from JD to Calendar Date. */
             $julian = $J + round($F);
             $parts  = explode('/', $this->_jdtogregorian($julian));
-            $stamp  = gmmktime(0, 0, 0, $parts[0], $parts[1], $parts[2]);
+            $stamp  = gmmktime(0, 0, 0, $parts[1], $parts[0], $parts[2]);

             /* half K. */
             if (($K9 - floor($K9)) > 0) {





More information about the bugs mailing list