Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the DateTime CPAN distribution.

Report information
The Basics
Id: 20786
Status: rejected
Priority: 0/
Queue: DateTime

People
Owner: Nobody in particular
Requestors: LGODDARD [...] cpan.org
Cc:
AdminCc:

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



Subject: time_zone error messages
Perl: use DateTime; my $t = DateTime->now(); warn $t - 1; Prints: Can't call method "time_zone" without a package or object reference The object doesn't seem to instantiate with my local time zone (GMT), though it does almost get my local date (it ignores Summer Time: ticket coming up for that). perl -V bash-3.00# perl -V Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Platform: osname=linux, osvers=2.6.12.6-xen3_12.1_rhel4.1, archname=i686- linux uname='linux rnddev 2.6.12.6-xen3_12.1_rhel4.1 #1 smp tue jan 31 14:04:08 pst 2006 i686 i686 i386 gnulinux ' config_args='' hint=recommended, useposix=true, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-fno-strict-aliasing -pipe -Wdeclaration-after- statement -I/usr/local/include -D_LARGEFILE_SOURCE - D_FILE_OFFSET_BITS=64', optimize='-O2', cppflags='-fno-strict-aliasing -pipe -Wdeclaration-after- statement -I/usr/local/include' ccversion='', gccversion='3.4.5 20051201 (Red Hat 3.4.5-2)', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=4, prototype=define Linker and Libraries: ld='cc', ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib libs=-lnsl -ldb -ldl -lm -lcrypt -lutil -lc perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc libc=/lib/libc-2.3.4.so, so=so, useshrplib=false, libperl=libperl.a gnulibc_version='2.3.4' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E' cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: PERL_MALLOC_WRAP USE_LARGE_FILES USE_PERLIO Built under linux Compiled at Jun 7 2006 07:50:37 @INC: /usr/local/lib/perl5/5.8.8/i686-linux /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/i686-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl . bash-3.00#
Subject: Re: [rt.cpan.org #20786] time_zone error messages
Date: Tue, 1 Aug 2006 08:28:37 -0500 (CDT)
To: lee via RT <bug-DateTime [...] rt.cpan.org>
From: Dave Rolsky <autarch [...] urth.org>
On Tue, 1 Aug 2006, lee via RT wrote: Show quoted text
> my $t = DateTime->now(); > warn $t - 1;
I'm not sure what you expect that last line to do, but subtracting a number from a DateTime object won't work. I can make the error message more informative but that's about it.
Subject: Re: [rt.cpan.org #20786] time_zone error messages
Date: Tue, 01 Aug 2006 19:19:03 +0100
To: bug-DateTime [...] rt.cpan.org
From: Lee Goddard <lee [...] leegoddard.net>
Ah, fair enough: for some reason I thought the object hide over-ridden operators. I've found another module built upon DateTime that provides something similar, though now the day is over I've forgotten the name. Thanks for the fast reply, though. autarch@urth.org via RT wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=20786 > > > On Tue, 1 Aug 2006, lee via RT wrote: > >
>> my $t = DateTime->now(); >> warn $t - 1; >>
> > I'm not sure what you expect that last line to do, but subtracting a > number from a DateTime object won't work. > > I can make the error message more informative but that's about it. > > >
-- Lee Goddard, BA (Hons), MSc www: LeeGoddard.net tel: 0208 369 6832 ltd: Server-side Systems ten: Ten years programming the net

Message body is not shown because sender requested not to inline it.