Skip to content

Commit

Permalink
#10 request date updated based on the UTC time for airflow job
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemisDicoTiar committed Jul 6, 2021
1 parent 69e6b47 commit 39135bc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion covid_tmp/src/plugins/getToday.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
function getTargetDate(delta) {
var curday = function(sp){
var today = new Date();
if (today.getUTCHours() < 10) {
if (today.getUTCHours() < 1) {
today.setDate(today.getDate() - delta - 2)
}
else if (today.getUTCHours() < 10) {
today.setDate(today.getDate() - delta - 1)
} else {
today.setDate(today.getDate() - delta)
Expand Down

0 comments on commit 39135bc

Please sign in to comment.