* calc/calc-forms.el (math-date-to-dt): Use integer date

when calling `math-date-to-julian-dt' and 'math-date-to-gregorian-dt'.
This commit is contained in:
Jay Belanger 2012-11-17 21:59:00 -06:00
parent 552a1590c6
commit eef97f35c8
2 changed files with 7 additions and 2 deletions

View 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.

View 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