X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:mime-version :content-type; q=dns; s=default; b=PgvevoD476qn25LaYgRD0a8FWmDzE f8N4DIJeXDSF25jih1y/cRjwIsZOxypIGBg8VdfGnYDfSmdGkwhgd8cORCGNtMsw ztqnxn432P11DQl3/8AF5CJWadmZXZ6NJzA2BZMhZSdUdCHRw0BnqZ6bD1isOFfv qeViu2Lhxvf/gs= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:mime-version :content-type; s=default; bh=KaObwYSLVh1F4u+rxxiWn4aoMwY=; b=q4E ubQZQbMF9fxAoc94ZqRG3QXxKRXqcWkqf0BtiqlkxgUpIHnJSsRIFw58LxmmvlEf 8sF/89ZBNrAGB6d0DXAtrJzKNC94cSn27CBqG+lLJjQjQO4vIaS0hYBuoS+ARtUO DoD0115sf6T51ylf4PlVOj/WguEc+bw5PVFuq8vg= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-0.0 required=5.0 tests=BAYES_20 autolearn=ham version=3.3.2 X-HELO: mail.missioncriticalit.com From: "Francesco Pizzolante" To: cygwin AT cygwin DOT com Subject: Getting different times with or without --login X-Url: http://www.missioncriticalit.com X-Archive: encrypt Date: Wed, 09 Oct 2013 17:11:00 +0200 Message-ID: <8761t6v5rv.fsf@somewhere.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain Hi, I noticed that I'm getting different times from the command line when use --login or not. Here's a simple test. 1. Start from a Windows command prompt and start bash with "bash --login". In this case, I can see that the TZ variable is set to "Europe/Brussels". If I run date, I get "Wed, Oct 09, 2013 5:00:52 PM", while running the following command "emacs -Q --batch --eval '(message "%s" (format-time-string "%H:%M"))'" returns "16:00" (I get a difference of one hour). 2. Start from a Windows command prompt and start bash with "bash". In this case, the TZ variable is not set (no profile loaded). In this case, the 2 previous commands return the same correct time. Note that the "date" command returns the correct time in any case (with and without --login), while the emacs command returns the correct time only when --login is not used (I'm using a Windows version of Emacs, 24.3). I have no issue when using the Cygwin version of Emacs. I don't understand what's wrong in my configuration. Everything should be fine even when using the "bash --login" command to start Cygwin (this is the what the standard cygwin.bat batch file does). Any hint is welcome. Thanks a lot. Francesco -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple