From 237c2213e90b38752db19726b8778781cbf5369b Mon Sep 17 00:00:00 2001 From: JT Smith Date: Tue, 30 Jan 2007 21:42:18 +0000 Subject: [PATCH] fix: Spectre needs new watch batteries --- docs/changelog/7.x.x.txt | 1 + lib/Spectre/Cron.pm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index f2a2fc38f..71636e371 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -9,6 +9,7 @@ - fix: Exporting fails with strange URLs. Also factored the URL to path/file translation out into a seperate method so it can be more easily maintained and tested. + - fix: Spectre needs new watch batteries - fix: lack of testing for valid object creation - fix: No mention of intermediate upgrade step in gotcha's - fix: A newly released version of Html::Template fixes a bug with global diff --git a/lib/Spectre/Cron.pm b/lib/Spectre/Cron.pm index 98c3ba279..17d0a3036 100644 --- a/lib/Spectre/Cron.pm +++ b/lib/Spectre/Cron.pm @@ -181,7 +181,7 @@ Checks all the schedules of the jobs in the queue and triggers a workflow if a s sub checkSchedules { my ($kernel, $self) = @_[KERNEL, OBJECT]; $self->debug("Checking schedules against current time."); - my $now = DateTime->from_epoch(epoch=>time()); + my $now = DateTime->now(time_zone => 'local'); foreach my $id (keys %{$self->{_jobs}}) { $kernel->yield("checkSchedule", $id, $now) }