From 70f2ed68e038cc35d70533d2294bb705368d3170 Mon Sep 17 00:00:00 2001 From: Joey Chatelain Date: Thu, 31 Oct 2019 17:53:00 -0700 Subject: [PATCH] future proof code against failure on August 31st 2132. --- neoexchange/core/management/commands/lightcurve_extraction.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neoexchange/core/management/commands/lightcurve_extraction.py b/neoexchange/core/management/commands/lightcurve_extraction.py index 2e6e1e139..8bd7994d6 100644 --- a/neoexchange/core/management/commands/lightcurve_extraction.py +++ b/neoexchange/core/management/commands/lightcurve_extraction.py @@ -204,8 +204,8 @@ def output_alcdef(self, lightcurve_file, block, site, dates, mags, mag_errors, f lightcurve_file.write('ENDMETADATA\n') i = 0 for date in dates: - jd = datetime2mjd_utc(date)+0.5 - lightcurve_file.write('DATA=24{:.6f}|{:+.3f}|{:+.3f}\n'.format(jd, mags[i], mag_errors[i])) + jd = datetime2mjd_utc(date)+2400000.5 + lightcurve_file.write('DATA={:.6f}|{:+.3f}|{:+.3f}\n'.format(jd, mags[i], mag_errors[i])) i += 1 lightcurve_file.write('ENDDATA\n')