spacepy / dbprocessing

Automated processing controller for heliophysics data
5 stars 4 forks source link

addFile: fix utc_start_time/stop_time as dates with Unix time table #36

Closed jtniehof closed 3 years ago

jtniehof commented 3 years ago

addFile used to work if the utc_start_time or utc_stop_time were passed in as a date instead of datetime--it just put to midnight of that day. It's a little bit weird, but the inspector output tends to get passed straight to addFile and I managed to write a few inspectors that did this in some circumstances. I figured if I could make that mistake it might happen again. With #31 this no longer worked, since they were treated as datetimes before hitting the database. This PR explicitly converts to datetime.

PR Checklist

jtniehof commented 3 years ago

See #37 for an attempt to address root cause.