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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=uU3hY7qZ9cW2BFaT jvOEdmR6uzpbUuC7sOs3BFoFrjc7DkiA6ixHgAwS+ieZAYaZLsJUa4ZNroVPTWkH YLH6AlDuzku3fkKXDz2dSfEhsA26ONSI++pdNRyACoNyWXSKdniwGrHm0p50pnVq WExVirh4BCWP6U2gzs5xLKO5KG0= 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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=GxZyPmo/XkLm04EKoroLo8 ZFPMM=; b=cmynOvAKjmwEmVDinUQnKpXVaxnJUkObo65zAPxBHfCu6lkVifECEF NbqOUdhZwtuBgLRIcfpq19e4wv3hw4Yi+NiLpaGhgMQxpwQrhcX0YGecAWv6dIep WFcMuI0ZP3LfZ5/SM6m0vqx1A372c8AiL7iOOVJ+DV3lB97YeDOzg= 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-Virus-Found: No X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f175.google.com X-Received: by 10.180.101.233 with SMTP id fj9mr102281434wib.45.1436288844073; Tue, 07 Jul 2015 10:07:24 -0700 (PDT) Subject: Re: Cygwin date displays only GMT on Win7 To: cygwin AT cygwin DOT com References: From: Marco Atzeri Message-ID: <559C0744.8050602@gmail.com> Date: Tue, 7 Jul 2015 19:07:16 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On 7/7/2015 6:39 PM, Siv wrote: > Hi, I just moved to Win7 from XP and installed Cygwin : > > Cygwin1.dll properties : > File Version : 1007.28.0.0 > Product Version : 1.7.28 > Date Modified : 04-02-2014 a bit old I should say > > $ bash --version > GNU bash, version 4.1.10(4)-release (i686-pc-cygwin) > Copyright (C) 2009 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > > One major problem is that it is showing only GMT time. > In the WinXP env, it used to show the same time as System time (GMT +05.30). > But here it is only GMT and it is breaking many things. > > 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" > locale -a shows an entry en_IN.utf8. try en_IN.UTF-8 $ locale LANG=en_IN.UTF-8 LC_CTYPE="en_IN.UTF-8" LC_NUMERIC="en_IN.UTF-8" LC_TIME="en_IN.UTF-8" LC_COLLATE="en_IN.UTF-8" LC_MONETARY="en_IN.UTF-8" LC_MESSAGES="en_IN.UTF-8" LC_ALL= what tzset now ? > > Googling is taking me to solutions in perl/C programs - but I want the > solution in plain bash script > > Any other parameter is needed to answer or am I missing something critical? > -- 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