Skip Menu |
 

This queue is for tickets about the TimeDate CPAN distribution.

Report information
The Basics
Id: 76968
Status: open
Priority: 0/
Queue: TimeDate

People
Owner: Nobody in particular
Requestors: cary.millsap [...] method-r.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



From cary.millsap [...] method-r.com Thu May 3 13: 31:01 2012
MIME-Version: 1.0
X-Spam-Status: No, score=-5.918 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, HTML_FONT_FACE_BAD=0.981, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5] autolearn=ham
X-Spam-Flag: NO
X-Virus-Checked: Checked by ClamAV on 16.mx.develooper.com
Content-Type: multipart/alternative; boundary=e89a8f50376461ac1404bf252a51
Message-ID: <CAJOkrQYsqBGDXcqvLL-nC_wFZ1tAA6Q4aQLR=NokCkRujNp3pg [...] mail.gmail.com>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -5.918
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 97C2B240277 for <cpan-bug+TimeDate [...] hipster.bestpractical.com>; Thu, 3 May 2012 13:31:01 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AYouGjPz02uc for <cpan-bug+TimeDate [...] hipster.bestpractical.com>; Thu, 3 May 2012 13:30:59 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 9A8C8240276 for <bug-TimeDate [...] rt.cpan.org>; Thu, 3 May 2012 13:30:59 -0400 (EDT)
Received: (qmail 24736 invoked by uid 103); 3 May 2012 17:30:58 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 3 May 2012 17:30:58 -0000
Received: from mail-yx0-f178.google.com (HELO mail-yx0-f178.google.com) (209.85.213.178) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with ESMTP; Thu, 03 May 2012 10:30:55 -0700
Received: by yenm14 with SMTP id m14so2071802yen.9 for <bug-TimeDate [...] rt.cpan.org>; Thu, 03 May 2012 10:30:53 -0700 (PDT)
Received: by 10.50.135.4 with SMTP id po4mr1201988igb.60.1336066252581; Thu, 03 May 2012 10:30:52 -0700 (PDT)
Received: by 10.231.210.193 with HTTP; Thu, 3 May 2012 10:30:11 -0700 (PDT)
Delivered-To: cpan-bug+TimeDate [...] hipster.bestpractical.com
Subject: TimeDate 1.20 tz2zone("America/Chicago") doesn't work
Return-Path: <cary.millsap [...] method-r.com>
X-RT-Mail-Extension: timedate
X-Original-To: cpan-bug+TimeDate [...] hipster.bestpractical.com
X-Spam-Check-BY: 16.mx.develooper.com
X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type :x-gm-message-state; bh=dYyXb+DzetpyV4rlOwxJ3ZNVRovoCLHzWS4q9pFYMhY=; b=UUqzLfYPgSHgC5O0PyiBwHpOPtzaRtJia3AOyY9A6N8TCBzhtzH+0tgLxaYjlQikHb GJ11bSA8cwWWOpuulu0Tw54q3Bk9o81ATs4jdH5Jpkc49CeOgWcDSTlSwBRkPC0PmYwF alnTOKEHteKCQD8H/QZxfWjitx1X7l6pj/YRcz6/ofjIoADOBg8Epaq/7NO/xD8AY/3p yHIbXFR+rDWviKSZKuLBUCHKDgUBIeOlx6v4zZEQoSSoezm5yui1n9QHzdZHU1ygEU0f RFeJPraKpqFk7K4wFH6E673JbMjpGxI6AxrsGOqsdu/MFy0NKjsKkxWyC1gw6Xkq4XX+ oR4Q==
Date: Thu, 3 May 2012 12:30:11 -0500
X-Spam-Level:
To: bug-TimeDate [...] rt.cpan.org
X-GM-Message-State: ALoCoQlFNRMeVii4i7VTDzi8ghDBPmCDDf3yhvdqOc6BL8QeHMEMDtzKaSEBQrDxUwF/b+pCTvk/
From: Cary Millsap <cary.millsap [...] method-r.com>
Content-Length: 0
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: ISO-8859-1
Content-Length: 1083
Graham, Using Time::Zone in TimeDate v1.20, I've found that tz2zone() doesn't convert time zones of the form "America/Chicago" to a value usable by tz_offset. My OS (Mac OS X, Linux, Solaris) does consider TZ values of the form "America/Chicago" to be valid: $ zdump "America/Chicago" America/Chicago Thu May 3 12:23:16 2012 CDT Here is a test in Perl that illustrates the problem: $ more t.pl use strict; use warnings; use Time::Zone; $ENV{TZ} = "-0500"; printf "%20s %20s %20s\n", qw(input tz2zone tzoffset(tz2zone)); printf "%20s %20s %20s\n", '-'x20, '-'x20, '-'x20; for (qw(-0500 CST6CDT America/Chicago)) { printf "%20s %20s %20s\n", $_, tz2zone($_), tz_offset(tz2zone($_))//"undef"; } $ perl t.pl input tz2zone tzoffset(tz2zone) -------------------- -------------------- -------------------- -0500 -0500 -18000 CST6CDT CST -21600 America/Chicago America/Chicago undef Thank you for looking into it. Cary Millsap
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: ISO-8859-1
Content-Length: 2911
From gbarr [...] pobox.com Thu May 3 13: 38:42 2012
MIME-Version: 1.0 (Apple Message framework v1257)
X-Spam-Status: No, score=-5.864 tagged_above=-99.9 required=10 tests=[AWL=0.357, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_NEUTRAL=0.779] autolearn=ham
In-Reply-To: <rt-3.8.HEAD-20172-1336066263-1639.76968-4-0 [...] rt.cpan.org>
X-Mailer: Apple Mail (2.1257)
X-Spam-Flag: NO
References: <RT-Ticket-76968 [...] rt.cpan.org> <CAJOkrQYsqBGDXcqvLL-nC_wFZ1tAA6Q4aQLR=NokCkRujNp3pg [...] mail.gmail.com> <rt-3.8.HEAD-20172-1336066263-1639.76968-4-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Content-Type: text/plain; charset="utf-8"
Message-ID: <004080A8-F1BC-48C2-A8F8-31B8C54F4EC0 [...] pobox.com>
X-RT-Original-Encoding: utf-8
X-Spam-Score: -5.864
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] pobox.com
Authentication-Results: hipster.bestpractical.com (amavisd-new); domainkeys=pass header.from=gbarr [...] pobox.com
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 2DA70240326 for <cpan-bug+TimeDate [...] hipster.bestpractical.com>; Thu, 3 May 2012 13:38:42 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PVVFdullrkoL for <cpan-bug+TimeDate [...] hipster.bestpractical.com>; Thu, 3 May 2012 13:38:40 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 3AE2B240323 for <bug-TimeDate [...] rt.cpan.org>; Thu, 3 May 2012 13:38:40 -0400 (EDT)
Received: (qmail 25424 invoked by uid 103); 3 May 2012 17:38:39 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 3 May 2012 17:38:39 -0000
Received: from a-pb-sasl-sd.pobox.com (HELO sasl.smtp.pobox.com) (74.115.168.62) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with ESMTP; Thu, 03 May 2012 10:38:36 -0700
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 4AEBFA331 for <bug-TimeDate [...] rt.cpan.org>; Thu, 3 May 2012 13:38:33 -0400 (EDT)
Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 447EBA330 for <bug-TimeDate [...] rt.cpan.org>; Thu, 3 May 2012 13:38:33 -0400 (EDT)
Received: from mail.goingon.net (unknown [70.85.157.106]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPA id E0A24A32F for <bug-TimeDate [...] rt.cpan.org>; Thu, 3 May 2012 13:38:32 -0400 (EDT)
Received: by mail.goingon.net (Postfix, from userid 99) id 3E34BFB432D; Thu, 3 May 2012 12:38:32 -0500 (CDT)
Received: from [192.168.111.14] (client-63.249.42.207.dfwtx.partnershipbroadband.com [63.249.42.207]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.goingon.net (Postfix) with ESMTP id F1442FB432B for <bug-TimeDate [...] rt.cpan.org>; Thu, 3 May 2012 12:38:30 -0500 (CDT)
Delivered-To: cpan-bug+TimeDate [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #76968] TimeDate 1.20 tz2zone("America/Chicago") doesn't work
Domainkey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=content-type :mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; q=dns; s= sasl; b=qRO5LTLFXFFHFTlALSsadqL4gVx/AQT49umu9Nn0YeZTd2uBR6lgVc8l 79ERRlGLVle31emomXfmcMqt8Ah12iSwabBZ4rR/f8AacAyN3XoQ7Lo+UgY63Z+q vTBhcHB0a0BHDcYk/fFtmbgxHiw4TcFMpaNKsCHaSfQCZ/y+e5w=
Return-Path: <gbarr [...] pobox.com>
Dkim-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=content-type :mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; s=sasl; bh= 2bpwN0tu5vljehuRGMYzt0LlnMk=; b=oRpxzzzhRXv6rxGMx/e0phiS/cCcoGPV 6naMMy4bkklXaCLgSjbN0/HE+qWPeYwShAnXUAbOTTiT9QGcvWwF9u97uaJm0QZr d9TnTurYaWznsRA2dPDGPd6TMrJXMZokZ+zZg52eUNLUA/YJ77KV3KXfpTGKIsEL ceu3C+DrTJU=
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: cpan-bug+TimeDate [...] hipster.bestpractical.com
X-RT-Mail-Extension: timedate
X-Old-Spam-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,RDNS_DYNAMIC autolearn=no version=3.2.5
Date: Thu, 3 May 2012 12:38:29 -0500
X-Old-Spam-Level:
X-Spam-Level:
To: bug-TimeDate [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: CDB5096E-9546-11E1-9CDC-8BEB728A0A4D-36227416!a-pb-sasl-sd.pobox.com
From: Graham Barr <gbarr [...] pobox.com>
RT-Message-ID: <rt-3.8.HEAD-20175-1336066722-70.76968-0-0 [...] rt.cpan.org>
Content-Length: 496
Download (untitled) / with headers
text/plain 496b
On May 3, 2012, at 12:31 , Cary Millsap via RT wrote: Show quoted text
> Using Time::Zone in TimeDate v1.20, I've found that tz2zone() doesn't > convert time zones of the form "America/Chicago" to a value usable by > tz_offset. My OS (Mac OS X, Linux, Solaris) does consider TZ values of the > form "America/Chicago" to be valid:
tz2zone was never intended to support named zones, it was intended to convert the likes of -0800 etc. I would suggest using DateTime::TimeZone to convert named timezones. Graham.
From cary.millsap [...] method-r.com Thu May 3 13: 52:04 2012
MIME-Version: 1.0
X-Spam-Status: No, score=-6.409 tagged_above=-99.9 required=10 tests=[AWL=0.490, BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5] autolearn=ham
In-Reply-To: <rt-3.8.HEAD-20175-1336066723-432.76968-6-0 [...] rt.cpan.org>
X-Spam-Flag: NO
References: <RT-Ticket-76968 [...] rt.cpan.org> <CAJOkrQYsqBGDXcqvLL-nC_wFZ1tAA6Q4aQLR=NokCkRujNp3pg [...] mail.gmail.com> <rt-3.8.HEAD-20172-1336066263-1639.76968-4-0 [...] rt.cpan.org> <004080A8-F1BC-48C2-A8F8-31B8C54F4EC0 [...] pobox.com> <rt-3.8.HEAD-20175-1336066723-432.76968-6-0 [...] rt.cpan.org>
X-Virus-Checked: Checked by ClamAV on 16.mx.develooper.com
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <CAJOkrQYrEc2bKT6RBERUxijbPphQW68fp=+k5ty+X6amqBfn2g [...] mail.gmail.com>
Content-Type: multipart/alternative; boundary=14dae9340ef7aedebf04bf257568
X-Spam-Score: -6.409
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 27C0F240277 for <cpan-bug+TimeDate [...] hipster.bestpractical.com>; Thu, 3 May 2012 13:52:04 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZYhM5tAbEKDb for <cpan-bug+TimeDate [...] hipster.bestpractical.com>; Thu, 3 May 2012 13:52:03 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id C4EA4240276 for <bug-TimeDate [...] rt.cpan.org>; Thu, 3 May 2012 13:52:02 -0400 (EDT)
Received: (qmail 26531 invoked by uid 103); 3 May 2012 17:52:02 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 3 May 2012 17:52:02 -0000
Received: from mail-yx0-f178.google.com (HELO mail-yx0-f178.google.com) (209.85.213.178) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with ESMTP; Thu, 03 May 2012 10:51:58 -0700
Received: by yenm14 with SMTP id m14so2097070yen.9 for <bug-TimeDate [...] rt.cpan.org>; Thu, 03 May 2012 10:51:56 -0700 (PDT)
Received: by 10.50.57.129 with SMTP id i1mr1274860igq.33.1336067515932; Thu, 03 May 2012 10:51:55 -0700 (PDT)
Received: by 10.231.210.193 with HTTP; Thu, 3 May 2012 10:51:15 -0700 (PDT)
Delivered-To: cpan-bug+TimeDate [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #76968] TimeDate 1.20 tz2zone("America/Chicago") doesn't work
Return-Path: <cary.millsap [...] method-r.com>
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: cpan-bug+TimeDate [...] hipster.bestpractical.com
X-RT-Mail-Extension: timedate
X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:x-gm-message-state; bh=qVlQ6WcBNXf2W/DF18t0VU0rOU3sqJLRrwpM17hqEaI=; b=o9xUMm4kMWNcGI8LjMfuVEqz+ux2ngL7n64j8Fek1DPgJDiaZupAmdGspA9Zs9Ya2r S+DCXIiEtYEhDgLURWI3WU3dCDP2nuuaNUhDm3ounypDj3PpGAdGEIq+Pk8y9F38g1lJ +InUZI0Ncl90esGXeogd2pySAVMd0rto4QrPkRxCAf5J8lm4MI9hqORqFBbfdem8Jxy0 PKuFTEVrLgqbi+P2rjXoQtguE/H+u6e4uVWdU+eRHX5J1VjUWNVk0T5Szq6BmMVuCrz9 y8H7NlYVz0FUeOkLLqVMdzUn81kVPfCfKS0qCZvSMg2Fh1r/yViTUiz/kKA6y3njohR1 Hd+Q==
Date: Thu, 3 May 2012 12:51:15 -0500
X-Spam-Level:
To: bug-TimeDate [...] rt.cpan.org
From: Cary Millsap <cary.millsap [...] method-r.com>
X-GM-Message-State: ALoCoQko3rjuRXtQXuSBOGx1H9Y5BtD1PW8Cay9H494CSMIf3W3Lp8zM9v+RuhCSsWnTBr31b98Q
RT-Message-ID: <rt-3.8.HEAD-20175-1336067524-140.76968-0-0 [...] rt.cpan.org>
Content-Length: 0
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
Content-Length: 717
Download (untitled) / with headers
text/plain 717b
Thank you, Graham. I'll look there. Cary On Thu, May 3, 2012 at 12:38 PM, Graham Barr via RT < bug-TimeDate@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=76968 > > > On May 3, 2012, at 12:31 , Cary Millsap via RT wrote:
> > Using Time::Zone in TimeDate v1.20, I've found that tz2zone() doesn't > > convert time zones of the form "America/Chicago" to a value usable by > > tz_offset. My OS (Mac OS X, Linux, Solaris) does consider TZ values of
> the
> > form "America/Chicago" to be valid:
> > tz2zone was never intended to support named zones, it was intended to > convert the likes of -0800 etc. > > I would suggest using DateTime::TimeZone to convert named timezones. > > Graham. > > >
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: utf-8
Content-Length: 1232


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.