X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=elmo%2Felmo-date.el;h=ea2f0e577f9575ef74de0c322bc1f97b9908433e;hb=08fe50f15e7aed9643f87a7cbb552690c6908318;hp=75fbb5ccebb464799ac116bc850b6c9e488df15a;hpb=8b003dd16e3d4a1f0d29b5fcd0f57a2ee294f967;p=elisp%2Fwanderlust.git diff --git a/elmo/elmo-date.el b/elmo/elmo-date.el index 75fbb5c..ea2f0e5 100644 --- a/elmo/elmo-date.el +++ b/elmo/elmo-date.el @@ -1,4 +1,4 @@ -;;; elmo-date.el -- Date processing module for ELMO. +;;; elmo-date.el --- Date processing module for ELMO. ;; Copyright (C) 1998,1999,2000 Yuuichi Teranishi @@ -24,10 +24,10 @@ ;; ;;; Commentary: -;; +;; ;;; Code: -;; +;; (require 'path-util) @@ -128,8 +128,14 @@ Otherwise treat \\ in NEWTEXT string as special: (error "%s is not supported yet" suffix))))) ((string-match "[0-9]+-[A-Za-z]+-[0-9]+" description) (timezone-fix-time - (concat (elmo-replace-in-string description "-" " ") " 0:00") - nil nil)))) + (concat (elmo-replace-in-string description "-" " ") " 0:0") + (current-time-zone) nil)) + ((string-match "\\([0-9]+\\)-\\([0-9]+\\)-\\([0-9]+\\)" description) + (vector (string-to-number (match-string 1 description)) + (string-to-number (match-string 2 description)) + (string-to-number (match-string 3 description)) + 0 0 0 + (current-time-zone))))) (defun elmo-datevec-substitute (datevec1 datevec2) (if (/= (aref datevec2 2) 0) @@ -157,8 +163,7 @@ Otherwise treat \\ in NEWTEXT string as special: (setq p 1) (while (< p month) (setq days (+ days (timezone-last-day-of-month p year))) - (setq p (+ p 1)) - ) + (setq p (+ p 1))) (setq days (+ days mday)) (aref wday (% days 7)))) @@ -201,7 +206,10 @@ Otherwise treat \\ in NEWTEXT string as special: (aref (, datevec) 0) (aref (, datevec) 1) (aref (, datevec) 2) - (aref (, datevec) 3)))) + (timezone-make-time-string + (aref (, datevec) 3) + (aref (, datevec) 4) + (aref (, datevec) 5))))) (require 'product) (product-provide (provide 'elmo-date) (require 'elmo-version))