Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix FBA timestamps that sometimes are in seconds instead of milliseconds #666

Closed
wants to merge 1 commit into from

Conversation

norkans7
Copy link
Contributor

@norkans7 norkans7 commented Dec 4, 2023

No description provided.

@norkans7 norkans7 force-pushed the fix-FBA-referral-dates branch from 2fe97c3 to 7ab4abb Compare December 4, 2023 14:53
@@ -411,7 +411,7 @@ func (h *handler) processFacebookInstagramPayload(ctx context.Context, channel c

var date time.Time

if msg.Timestamp >= 10_000_000_000 {
if msg.Timestamp >= 100_000_000_000 {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rowanseymour I found the right number to use is 100_000_000_000 that we cannot consider as milliseconds
after experimenting with https://www.epochconverter.com/

@norkans7 norkans7 requested a review from rowanseymour December 4, 2023 14:55
Copy link

codecov bot commented Dec 4, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6689928) 74.24% compared to head (7ab4abb) 74.24%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #666   +/-   ##
=======================================
  Coverage   74.24%   74.24%           
=======================================
  Files          97       97           
  Lines       13127    13127           
=======================================
  Hits         9746     9746           
  Misses       2692     2692           
  Partials      689      689           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rowanseymour rowanseymour deleted the fix-FBA-referral-dates branch December 4, 2023 19:14
@github-actions github-actions bot locked and limited conversation to collaborators Dec 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants