6.0.0-beta1
7/29/25

[#685] MDY vs DMY
Summary MDY vs DMY
Queue Horde Base
Queue Version HEAD
Type Bug
State Resolved
Priority 1. Low
Owners chuck (at) horde (dot) org
Requester ctnpublic-horde (at) yahoo (dot) com
Created 10/12/2004 (7595 days ago)
Due
Updated 10/12/2004 (7595 days ago)
Assigned 10/12/2004 (7595 days ago)
Resolved 10/12/2004 (7595 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
10/12/2004 04:07:44 PM Chuck Hagenbuch Comment #2
State ⇒ Resolved
Reply to this comment
Actually, we were returning day/month/year from the native php 
function whereas the calendar module's jdtogregorian is supposed to 
return month/day/year. So I just fixed our function to do so as well.
10/12/2004 04:06:39 PM Chuck Hagenbuch Assigned to Chuck Hagenbuch
State ⇒ Assigned
 
10/12/2004 07:35:50 AM ctnpublic-horde (at) yahoo (dot) com Comment #1
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ MDY vs DMY
Queue ⇒ Horde Base
Reply to this comment
_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) {


Saved Queries