Skip Menu |

This queue is for tickets about the Schedule-Cron CPAN distribution.

Report information
The Basics
Id: 86103
Status: open
Priority: 0/
Queue: Schedule-Cron

People
Owner: Nobody in particular
Requestors: rt.cpan.org [...] mailfilter.com.ar
Cc:
AdminCc:

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



Subject: make test fails in some time zones
Date: Wed, 12 Jun 2013 23:10:08 -0300
To: <bug-Schedule-Cron [...] rt.cpan.org>
From: Guillermo Prandi <rt.cpan.org [...] mailfilter.com.ar>
Running "make test" with my default time zone ("ART") resulted in several errors in t/execution_time.t, as follows: # Cron-Entry: 0 12 30 * * # Ref-Time: Fri Feb 27 13:00:00 2009 # Calculated: Mon Mar 30 12:00:00 2009 # Expected: Mon Mar 30 12:00:00 2009 ok 46 # Cron-Entry: * 12 30 * * # Ref-Time: Tue Jan 27 13:01:00 2009 # Calculated: Fri Jan 30 13:00:00 2009 # Expected: Fri Jan 30 13:00:00 2009 ok 47 # Cron-Entry: * 12 27 * * # Ref-Time: Tue Jan 27 13:01:00 2009 # Calculated: Fri Feb 27 13:00:00 2009 # Expected: Tue Jan 27 13:02:00 2009 not ok 48 # Cron-Entry: * 12 * * * # Ref-Time: Tue Jan 27 13:01:00 2009 # Calculated: Wed Jan 28 13:00:00 2009 # Expected: Tue Jan 27 13:02:00 2009 not ok 49 # Cron-Entry: * 13 * * * # Ref-Time: Tue Jan 27 13:01:00 2009 # Calculated: Tue Jan 27 14:02:00 2009 # Expected: Tue Jan 27 14:00:00 2009 not ok 50 # Cron-Entry: 0 23 * * 1 # Ref-Time: Sat Sep 1 23:00:00 2007 # Calculated: Mon Sep 3 23:00:00 2007 # Expected: Mon Sep 3 23:00:00 2007 ok 51 # Cron-Entry: * * * * * */10 # Ref-Time: Sat Sep 1 23:00:55 2007 # Calculated: Sat Sep 1 23:01:00 2007 # Expected: Sat Sep 1 23:01:00 2007 ok 52 # Failed test at t/execution_time.t line 73. # Failed test at t/execution_time.t line 73. # Failed test at t/execution_time.t line 73. # Looks like you failed 3 tests of 52. Dubious, test returned 3 (wstat 768, 0x300) Failed 3/52 subtests I could pass all tests using: TZ=UTC-0 make test However, my server will be running with TZ=ART; I don't know if that workaround will fix it or will cause problems in the future. Guillermo
Sorry, I cant reproduce this, using "ar" as timezone works for me perfectly (I'm in MET). What version of Parse::TimeDate are you using ?
On Fri Dec 13 06:28:31 2013, ROLAND wrote:
Show quoted text
> Sorry, I cant reproduce this, using "ar" as timezone works for me perfectly
> (I'm in MET). What version of Parse::TimeDate are you using ?

TZ=ART of course.