* calc/calc-forms.el (math-date-to-dt): Use integer date
authorJay Belanger <jay.p.belanger@gmail.com>
Sun, 18 Nov 2012 03:59:00 +0000 (21:59 -0600)
committerJay Belanger <jay.p.belanger@gmail.com>
Sun, 18 Nov 2012 03:59:00 +0000 (21:59 -0600)
when calling `math-date-to-julian-dt' and 'math-date-to-gregorian-dt'.

lisp/ChangeLog
lisp/calc/calc-forms.el

index 0bd5fe0..fdcde1d 100644 (file)
@@ -1,3 +1,8 @@
+2012-11-18  Jay Belanger  <jay.p.belanger@gmail.com>
+
+       * calc/calc-forms.el (math-date-to-dt): Use integer date when
+       calling `math-date-to-julian-dt' and 'math-date-to-gregorian-dt'.
+
 2012-11-18  Glenn Morris  <rgm@gnu.org>
 
        * image.el (insert-image, insert-sliced-image): Doc fix.
index d1df20c..709250f 100644 (file)
@@ -443,8 +443,8 @@ in the Gregorian calendar and the remaining part determines the time."
                                    (nth 3 calc-gregorian-switch)
                                    (apply 'math-absolute-from-gregorian-dt calc-gregorian-switch))
 ))
-                 (math-date-to-julian-dt value)
-               (math-date-to-gregorian-dt value))))
+                 (math-date-to-julian-dt date)
+               (math-date-to-gregorian-dt date))))
     (if (math-integerp value)
         dt
       (append dt