Use UTC for .raw file time stamp

This commit is contained in:
David Honess 2019-06-04 10:28:28 +02:00 committed by GitHub
parent 223af64178
commit c192cc169c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -87,7 +87,7 @@ while running:
alt = math.degrees(iss.tle.alt) alt = math.degrees(iss.tle.alt)
if alt > 0: # iss is flying over our location if alt > 0: # iss is flying over our location
fn = datetime.datetime.now().strftime(FILE_FMT) fn = datetime.datetime.utcnow().strftime(FILE_FMT)
f = open(fn, "wb") f = open(fn, "wb")
proc = subprocess.Popen(rtl_cmd, stdout=f) proc = subprocess.Popen(rtl_cmd, stdout=f)
while alt > 0: while alt > 0: