X-Recipient: archive-cygwin@delorie.com X-Spam-Check-By: sourceware.org Date: Fri, 27 Apr 2012 18:19:28 +0200 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: The "date" command is giving wrong results. Message-ID: <20120427161928.GB8309@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <2029203718.249620.1335539762335.JavaMail.gess@webmail-02.datacenter.cha.cantv.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <2029203718.249620.1335539762335.JavaMail.gess@webmail-02.datacenter.cha.cantv.net> User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Delivered-To: mailing list cygwin@cygwin.com On Apr 27 10:46, rodmedina@cantv.net wrote: > On 26 Apr 2012 10:03:20 Corinna Vinschen wrote: > > >What's your Windows timezone set to (the actual timezone text in the > >"Date and Time" control panel? And what is Cygwin's $TZ set to? > > In Windows my Time-zone is (GMT -04:30)Caracas > > In cygwin: > $ echo $TZ > Asia/Yakutsk > > >From where Cygwin gets such time-zone I can't imagine. Me neither. I tried to change the Windows timezone to Caracas as well, and the tzset tool correctly returned "America/Caracas", on XP as well as on W7. When yu open the "Regional and Language Options" control panel, what is the "Location field set to? > What is the proper solution?, to $TZ in the profile?. Usually it's automatically set via a call to the tzset tool in /etc/profile.d/tzset.sh or /etc/profile.d/tzset.csh. In your case, maybe you should just set TZ to the right value in your user profile. However, if you feel up to the task, you might consider to debug the tzset tool with GDB. It's not an overly complicated tool and it would be interesting to learn why it sets TZ to "Asia/Yakutsk". Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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