From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28604 invoked by alias); 15 Dec 2007 01:05:16 -0000 Received: (qmail 28574 invoked by uid 22791); 15 Dec 2007 01:05:10 -0000 X-Spam-Check-By: sourceware.org Received: from dessent.net (HELO dessent.net) (69.60.119.225) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 15 Dec 2007 01:05:06 +0000 Received: from localhost ([127.0.0.1] helo=dessent.net) by dessent.net with esmtp (Exim 4.50) id 1J3LSi-0002jb-UA for cygwin@cygwin.com; Sat, 15 Dec 2007 01:05:05 +0000 Message-ID: <476328B8.AABBB513@dessent.net> Date: Sat, 15 Dec 2007 01:05:00 -0000 From: Brian Dessent X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: Timezone manipulation within Perl script References: <9761.12995-16991-2031106093-1197667559@email.cz> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Reply-To: cygwin@cygwin.com Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2007-12/txt/msg00363.txt.bz2 roman.vasicek@email.cz wrote: > I want to ask you how convert time between different timezones in perl script running under cygwin. I have an application which store datetime information in Zulu/GMT. I need to provide date in user timezone. How to do the correct conversion? I want to be able to offer Timezone info like 'Europe/Prague'. Following code snippet will provide correct output when running under Active state Perl (time will differ 1 or 2 hours depending on input date), but when running under cygwin perl no conversion will be done. Can anyone help me? The testcase works fine for me as well. You didn't include cygcheck output, so do you have the tzcode package installed? If not, try installing it. It should be part of Base now so you should get it automatically the next time you run setup. Brian -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/