Fix recurring transactions calculator for after-the-fact updates

This commit is contained in:
Thomas Bloor 2018-05-24 15:16:28 +01:00
parent ccdbff42e6
commit 25b6b3a9a4
No known key found for this signature in database
GPG key ID: 4657C7EBE42CC5CC

View file

@ -87,11 +87,10 @@ sub run {
return; return;
} }
my $now = DateTime->now();
my $purchase_time = DateTime->new( my $purchase_time = DateTime->new(
year => $now->year, year => $datetime->year,
month => $now->month, month => $datetime->month,
day => $now->day, day => $datetime->day,
hour => $start_time_dt->hour, hour => $start_time_dt->hour,
minute => $start_time_dt->minute, minute => $start_time_dt->minute,
second => $start_time_dt->second, second => $start_time_dt->second,