|
|
|
@ -417,8 +417,9 @@ function refresh() {
|
|
|
|
|
if (yesterday) { |
|
|
|
|
reqDate.setDate(reqDate.getDate() - 1) |
|
|
|
|
} |
|
|
|
|
reqDate.setMinutes(0, 0, 0) |
|
|
|
|
return fetch( |
|
|
|
|
`https://scraper.infotren.dcdev.ro/v3/trains/${trainNumber}?date=${reqDate.getFullYear().toString()}-${(reqDate.getMonth() + 1).toString().padStart(2, "0")}-${reqDate.getDate().toString().padStart(2, "0")}`, |
|
|
|
|
`https://scraper.infotren.dcdev.ro/v3/trains/${trainNumber}?date=${reqDate.toISOString()}`, |
|
|
|
|
{ |
|
|
|
|
cache: 'no-store', |
|
|
|
|
}, |
|
|
|
|