summaryrefslogtreecommitdiff
path: root/lisp/calc
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2012-05-03 23:13:18 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2012-05-03 23:13:18 -0700
commit0bfcf5c598d7c351591827b14482253adf9ab015 (patch)
treed11131363f77dcf33346df9a727663214664c46d /lisp/calc
parent85e8b518113820afff2edd0a35e70d54b1395ff4 (diff)
downloademacs-0bfcf5c598d7c351591827b14482253adf9ab015.tar.gz
Fix minor Y10k bugs.
* lisp/arc-mode.el (archive-unixdate): * lisp/autoinsert.el (auto-insert-alist): * lisp/calc/calc-forms.el (math-this-year): * lisp/gnus/nnweb.el (nnweb-google-parse-1): * lisp/emacs-lisp/copyright.el (copyright-current-year) (copyright-update-year, copyright): * lisp/tar-mode.el (tar-clip-time-string): * lisp/time.el (display-time-update): Don't assume years have 4 digits.
Diffstat (limited to 'lisp/calc')
-rw-r--r--lisp/calc/calc-forms.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/calc/calc-forms.el b/lisp/calc/calc-forms.el
index 96cc74f7ef6..dfc5dfc6588 100644
--- a/lisp/calc/calc-forms.el
+++ b/lisp/calc/calc-forms.el
@@ -444,7 +444,7 @@
(defun math-this-year ()
- (string-to-number (substring (current-time-string) -4)))
+ (nth 5 (decode-time)))
(defun math-leap-year-p (year)
(if (Math-lessp year 1752)