delorie.com/archives/browse.cgi | search |
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:to:from:subject:date:message-id:references | |
:mime-version:content-type:content-transfer-encoding; q=dns; s= | |
default; b=uwSeTXOTkh/XjEKIUePyibdT3CF0XBdvoDeVVX/1JUzP2u0XAbEEi | |
xlsCqDJw9lgxngiK9QEb7FIT/IoqaAR/HkaHGDQb+ARb/XhBzpL2stfhUhTZoXZa | |
P4zxi1c2eYOtC9ppp4yX90mT4+p4t+BLbq59VbSWWGPgRN4LyDyRMc= | |
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:to:from:subject:date:message-id:references | |
:mime-version:content-type:content-transfer-encoding; s=default; | |
bh=g7r1YFuUlesiQqbEtUY1ys2uVU0=; b=utwA2khnKqxUY7jEL5ty53Fmv7ZV | |
rQewO5OjhMPshnrgetRGfqtPUU+R58mVOQRfgf2XBPn60ixAjS6gJtE15+ksbckJ | |
STGG6Y3W5TTiJZnteLv/gT86PfEiJn7QHEOa0dZhNQRoItJEG5CLJ1eXSrmh/zzx | |
ZU4aZtlu6BYd3R8= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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-Virus-Found: | No |
X-HELO: | plane.gmane.org |
To: | cygwin AT cygwin DOT com |
From: | Siv <sivakumarjr AT gmail DOT com> |
Subject: | Re: Cygwin date displays only GMT on Win7 |
Date: | Wed, 8 Jul 2015 14:59:34 +0000 (UTC) |
Lines: | 55 |
Message-ID: | <loom.20150708T165028-748@post.gmane.org> |
References: | <loom DOT 20150707T180946-14 AT post DOT gmane DOT org> <20150708082753 DOT GE2918 AT calimero DOT vinschen DOT de> <97650594 DOT 20150708172159 AT yandex DOT ru> |
Mime-Version: | 1.0 |
User-Agent: | Loom/3.14 (http://gmane.org/) |
X-IsSubscribed: | yes |
Andrey Repin <anrdaemon <at> yandex.ru> writes: > > Greetings, Corinna Vinschen! > > >> Should I change the locale setting or the LC_TIME or TZ? > >> I tried setting : > >> set env `locale -f en_IN.utf8` > >> but cygwin says : > >> Environment variable env `locale -f en_IN.utf8` not defined > >> tzset: can't find matching POSIX timezone for Windows timezone "India > >> standard time" > > > Uh oh. Why on earth is the string returned by your machine in lower > > case?!? The default Windowes timezone name is "India Standard Time" > > with upper case S and T. > > > The tzset application checks the value returned by the OS > > case-sensitive, so, yes, it just doesn't recognize the string and fails > > to set the matching POSIX timezone. > > > Crazy but true: After all this time it's the first report that tzset > > fails because some Windows system returns timezones in different case. > > It is trivial to edit the name of timezone in registry. > Which was likely done in this case. > According to Microsoft's TZEDIT utility[1], the name of the timezone IS, > indeed, "India Standard Time", with proper capitalization as of current > Microsoft timezone update. > Even if it is not, on certain system, for some reason, this is a problem that > can be resolved using the same aforementioned utility. > > > I'm going to fix the tzset tool to use case-insensitve string checks. > > I doubt it is necessary. > > > I'm also going to upload a new Cygwin test release, 2.1.0-0.5, which > > will contain the fixed tzset tool. I'll announce it later today. > > Please give it a try. > > [1] http://download.microsoft.com/download/5/8/a/58a208b7-7dc7-4bc7-8357-28e29cdac52f/TZEDIT.exe > Hi Andrey, The TZSET.exe file couldn't do anything helpful, but after looking in the Win7 control panel, in the "Date and Time" config, there was an option which was not set (never knew about it). Changed it to UTC+05.30 and removed all extra settings in the cygwin.bat. Restarted cygwin and voila, date cmd is giving correct system time. Hi Corinna, Anyway will give a try out on the case insensitive check of time-zone. And thanx a lot for following up and the help. -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |