Skip Menu |

This queue is for tickets about the Date-Manip CPAN distribution.

Report information
The Basics
Id: 89256
Status: resolved
Priority: 0/
Queue: Date-Manip

People
Owner: Nobody in particular
Requestors: ll-rt-cpan [...] lange.nom.fr
Cc:
AdminCc:

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



Subject: Time zone is sometime ignored
Date: Fri, 04 Oct 2013 16:04:41 +0200
To: bug-Date-Manip [...] rt.cpan.org
From: Ludovic LANGE <ll-rt-cpan [...] lange.nom.fr>
Hello, I discovered that when using "ago", time zone setting seems to be ignored. While when using "yesterday", "today", ... it is used. Idem, a fixed day of month uses the time zone setting, and so does the "last" modifier. Expected result (when time zone is specified, it is properly used, otherwise it defaults to system time zone): today at midnight UTC, Fri, 04 Oct 2013 00:00:00 UTC today at midnight, Fri, 04 Oct 2013 00:00:00 CEST yesterday at midnight UTC, Thu, 03 Oct 2013 00:00:00 UTC yesterday at midnight, Thu, 03 Oct 2013 00:00:00 CEST 1st at midnight UTC, Tue, 01 Oct 2013 00:00:00 UTC last month at midnight UTC, Wed, 04 Sep 2013 00:00:00 UTC 0 day ago at midnight, Fri, 04 Oct 2013 00:00:00 CEST 1 day ago at midnight, Thu, 03 Oct 2013 00:00:00 CEST Unexpected result (time zone is ignored when explicitely specified): 0 day ago at midnight UTC, Fri, 04 Oct 2013 00:00:00 CEST 1 day ago at midnight UTC, Thu, 03 Oct 2013 00:00:00 CEST 3 day ago at 2:00 UTC, Tue, 01 Oct 2013 02:00:00 CEST 1 month ago at midnight UTC, Wed, 04 Sep 2013 00:00:00 CEST Is this a "normal" behaviour ? If so, it probably should be documented somewhere but I could not find it in Date or Delta pages. This was seen on Mac OS X 10.7.5 : * Date-Manip-6.41 * perl 5, version 12, subversion 3 (v5.12.3) built for darwin-thread-multi-2level * Darwin 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64 Thanks.
That was certainly a bug. I've fixed it and it will be in the next release (due out the beginning of December). Thanks