Skip to content

Commit

Permalink
Added 12 hours
Browse files Browse the repository at this point in the history
  • Loading branch information
cvalenzu committed Dec 14, 2020
1 parent a9a0980 commit 05dd60c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/Table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down
2 changes: 1 addition & 1 deletion src/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 05dd60c

Please sign in to comment.