From aab3a04d0c4ddbf97d589ba9048a539c6d7186e9 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Thu, 25 Jun 2020 23:18:17 +0200 Subject: bug: harmonize how time are used, fix some issues in command special formats This assume that the convertion from time.Time <--> Unix timestamp is lossless which seems to be. --- bridge/github/export.go | 2 +- bridge/gitlab/export.go | 2 +- bridge/jira/export.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'bridge') diff --git a/bridge/github/export.go b/bridge/github/export.go index b939d878..57b52ee0 100644 --- a/bridge/github/export.go +++ b/bridge/github/export.go @@ -173,7 +173,7 @@ func (ge *githubExporter) ExportAll(ctx context.Context, repo *cache.RepoCache, // ignore issues created before since date // TODO: compare the Lamport time instead of using the unix time - if snapshot.CreatedAt.Before(since) { + if snapshot.CreateTime.Before(since) { out <- core.NewExportNothing(b.Id(), "bug created before the since date") continue } diff --git a/bridge/gitlab/export.go b/bridge/gitlab/export.go index 918e6b5e..f32ec0e3 100644 --- a/bridge/gitlab/export.go +++ b/bridge/gitlab/export.go @@ -131,7 +131,7 @@ func (ge *gitlabExporter) ExportAll(ctx context.Context, repo *cache.RepoCache, // ignore issues created before since date // TODO: compare the Lamport time instead of using the unix time - if snapshot.CreatedAt.Before(since) { + if snapshot.CreateTime.Before(since) { out <- core.NewExportNothing(b.Id(), "bug created before the since date") continue } diff --git a/bridge/jira/export.go b/bridge/jira/export.go index 37066263..e6167966 100644 --- a/bridge/jira/export.go +++ b/bridge/jira/export.go @@ -165,7 +165,7 @@ func (je *jiraExporter) ExportAll(ctx context.Context, repo *cache.RepoCache, si // ignore issues whose last modification date is before the query date // TODO: compare the Lamport time instead of using the unix time - if snapshot.CreatedAt.Before(since) { + if snapshot.CreateTime.Before(since) { out <- core.NewExportNothing(b.Id(), "bug created before the since date") continue } -- cgit