diff --git a/src/components/Table.vue b/src/components/Table.vue index e4d59169..2ebdc007 100644 --- a/src/components/Table.vue +++ b/src/components/Table.vue @@ -76,6 +76,7 @@ export default { delta: 2, selectedSN: null, deltaTimes: [ + { text: "Last 12 Hours", value: 0.5 }, { text: "Last 24 Hours", value: 1 }, { text: "Last 48 Hours", value: 2 }, { text: "Last 72 Hours", value: 3 }, diff --git a/src/store.js b/src/store.js index a719ab77..555344a6 100644 --- a/src/store.js +++ b/src/store.js @@ -230,7 +230,7 @@ export default new Vuex.Store({ //Calculate stuff var date = new Date(); var now_mjd = dateToJD(date); - var last_mjd = dateToJD(date.subsDays(delta)); + var last_mjd = now_mjd - delta; var parameters = { records_per_pages: nCandidates,