# HG changeset patch # User Gerd Moellmann # Date 1004441076 0 # Node ID 4c7be17ecf55ce14d5181270b70342fc248626dd # Parent 94818b20da051ba45d5ea3a42996dc936d1b1871 (nnimap-date-days-ago): Defeat locale. diff -r 94818b20da05 -r 4c7be17ecf55 lisp/gnus/nnimap.el --- a/lisp/gnus/nnimap.el Tue Oct 30 11:11:48 2001 +0000 +++ b/lisp/gnus/nnimap.el Tue Oct 30 11:24:36 2001 +0000 @@ -1,5 +1,5 @@ ;;; nnimap.el --- imap backend for Gnus -;; Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc. +;; Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc. ;; Author: Simon Josefsson ;; Jim Radford @@ -1088,10 +1088,12 @@ (defun nnimap-date-days-ago (daysago) "Return date, in format \"3-Aug-1998\", for DAYSAGO days ago." - (let ((date (format-time-string "%d-%b-%Y" - (nnimap-time-substract - (current-time) - (days-to-time daysago))))) + (let* ((time (nnimap-time-substract (current-time) (days-to-time daysago))) + (date (format-time-string + (format "%%d-%s-%%Y" + (capitalize (car (rassoc (nth 4 (decode-time time)) + parse-time-months)))) + time))) (if (eq ?0 (string-to-char date)) (substring date 1) date)))