Skip to content

Commit

Permalink
Fix start_date/end_date timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
pierotofy committed Sep 29, 2023
1 parent 2211a49 commit 729339d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opensfm/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,8 +489,8 @@ def processing_statistics(

start_ct, end_ct = start_end_capture_time(reconstructions)
if start_ct is not None and end_ct is not None:
stats["start_date"] = datetime.datetime.fromtimestamp(start_ct).strftime("%d/%m/%Y at %H:%M:%S")
stats["end_date"] = datetime.datetime.fromtimestamp(end_ct).strftime("%d/%m/%Y at %H:%M:%S")
stats["start_date"] = datetime.datetime.utcfromtimestamp(start_ct).strftime("%d/%m/%Y at %H:%M:%S")
stats["end_date"] = datetime.datetime.utcfromtimestamp(end_ct).strftime("%d/%m/%Y at %H:%M:%S")
else:
stats["start_date"] = "unknown"
stats["end_date"] = "unknown"
Expand Down

0 comments on commit 729339d

Please sign in to comment.