From 27842052271d30ca9dffee4cbc0b967709cde1bb Mon Sep 17 00:00:00 2001 From: Shane Huston Date: Wed, 13 Oct 2021 17:45:21 +0100 Subject: [PATCH] Properly handle completedDate for Revolut Report uses completedDate to determine whether or not a transaction should be included in the report. Revolut data now includes not just the date but also the time. While this is useful, it alters the report's decision which results in some transactions being incorrectly included. To match AIB transaction data, the time is now stripped from Revolut transaction data when being handled by the report. --- transactions/revolutTransaction.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transactions/revolutTransaction.go b/transactions/revolutTransaction.go index 76fe1ad..cbd2694 100644 --- a/transactions/revolutTransaction.go +++ b/transactions/revolutTransaction.go @@ -82,7 +82,7 @@ func NewRevolutTransaction(rawData string) *revolutTransaction { } func (t revolutTransaction) GetCompletedDate() time.Time { - return t.completedDate + return time.Date(t.completedDate.Year(), t.completedDate.Month(), t.completedDate.Day(), 0, 0, 0, 0, time.UTC) } func (t revolutTransaction) Output() {