fix: Spectre needs new watch batteries

This commit is contained in:
JT Smith 2007-01-30 21:42:18 +00:00
parent c56a53b4a2
commit 237c2213e9
2 changed files with 2 additions and 1 deletions

View file

@ -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)
}