From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Make display-time-mode time zone configurable Date: Fri, 19 Feb 2016 10:02:46 -0800 Organization: UCLA Computer Science Department Message-ID: <56C758C6.90702@cs.ucla.edu> References: <87fuwt8wek.fsf@udel.edu> <56C2A950.3080102@cs.ucla.edu> <20160219023723.GB15748@holos> <56C6A0CC.1080007@cs.ucla.edu> <20160219171437.GA9456@holos> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1455905219 21638 80.91.229.3 (19 Feb 2016 18:06:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Feb 2016 18:06:59 +0000 (UTC) Cc: emacs-devel@gnu.org To: Mark Oteiza Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 19 19:06:50 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aWpS3-00083A-46 for ged-emacs-devel@m.gmane.org; Fri, 19 Feb 2016 19:06:47 +0100 Original-Received: from localhost ([::1]:54356 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWpS1-00017I-UX for ged-emacs-devel@m.gmane.org; Fri, 19 Feb 2016 13:06:45 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50073) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWpOL-0007Qf-KX for emacs-devel@gnu.org; Fri, 19 Feb 2016 13:02:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aWpOH-000882-IS for emacs-devel@gnu.org; Fri, 19 Feb 2016 13:02:57 -0500 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:54750) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWpOH-00087D-D1 for emacs-devel@gnu.org; Fri, 19 Feb 2016 13:02:53 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id AE3771601D0; Fri, 19 Feb 2016 10:02:50 -0800 (PST) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id TYvkVlIkaDMd; Fri, 19 Feb 2016 10:02:50 -0800 (PST) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id EEC2B160FEF; Fri, 19 Feb 2016 10:02:49 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ElNQvl9DatzZ; Fri, 19 Feb 2016 10:02:49 -0800 (PST) Original-Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id D548E1601D0; Fri, 19 Feb 2016 10:02:49 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 In-Reply-To: <20160219171437.GA9456@holos> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 131.179.128.68 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:200227 Archived-At: On 02/19/2016 09:14 AM, Mark Oteiza wrote: > My first thought of a use-case is simply keeping time zone in the mode > line the same regardless of what the system time (or local time) may be, > akin to not changing one's watch when travelling. That's easily done with (setenv "TZ" "America/Los_Angeles"), or whatever you want the mode-line's time zone to be. > Alternatively, similar to standardizing on one a particular time zone in > time-stamp.el, it may also be desirable in a privacy sense to > standardize the rest of Emacs' time displays (e.g. time stamps in email > or other network connections) to another time zone but still keep the > "wall clock" (meaning display-time-mode) as local time. If there's a need to use publish some other time zone for privacy reasons, then it would make sense to add a configuration variable for one's "public time zone", which Emacs uses for email and other uses intended to be public, while continuing to use the current TZ-based approach for the actual time zone. Alternatively, Emacs could add a configuration variable for one's "private time zone", which would be used for mode lines and for other private things, while continuing to use TZ for the time zone announced for public uses. The former of these two alternatives sounds more plausible to me, as users expect TZ to be the "true" time zone.