Skip to content

Commit

Permalink
Update date difference calculation in GetEmails function
Browse files Browse the repository at this point in the history
  • Loading branch information
algo7 committed Feb 22, 2024
1 parent 4b349e6 commit 6f49fcf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/integrations/gmail/emails.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func GetEmails() ([]integrations.Email, error) {
now := time.Now()

// Subtract 3 days from the current time
dateDiff := now.AddDate(0, 0, -3)
dateDiff := now.AddDate(0, 0, -2)

// Format the time in ISO 8601 format
dateDiffStr := dateDiff.Format("2006-01-02")
Expand Down
2 changes: 1 addition & 1 deletion pkg/integrations/outlook/emails.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func GetEmails() ([]integrations.Email, error) {
now := time.Now()

// Subtract 3 days from the current time
dateDiff := now.AddDate(0, 0, -3)
dateDiff := now.AddDate(0, 0, -2)

// Format the time in ISO 8601 format
dateDiffStr := dateDiff.Format("2006-01-02T15:04:05Z")
Expand Down

0 comments on commit 6f49fcf

Please sign in to comment.