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')