Merge pull request #10119 from kraktus/date_safari_download
Fix download page date range for Safarideepcrayonfish^2
commit
505b32ef10
|
@ -9,8 +9,8 @@ function generateSearchParams(): string {
|
||||||
});
|
});
|
||||||
|
|
||||||
['since', 'until'].forEach(name => {
|
['since', 'until'].forEach(name => {
|
||||||
const minTimestamp = 1356998400070;
|
const minTimestamp = 1356998400070; // 01/01/2013, 01:00:00
|
||||||
const date = $(`#dl-date-${name}`).val() as string;
|
const date = ($(`#dl-date-${name}`).val() as string).replace(/-/g, '/'); // for Safari https://stackoverflow.com/a/4310986/11955835
|
||||||
const time = $(`#dl-time-${name}`).val() as string;
|
const time = $(`#dl-time-${name}`).val() as string;
|
||||||
if (date.length == 10) {
|
if (date.length == 10) {
|
||||||
// the 00:00:00 is necessary for the time to be interpreted in the local timezone
|
// the 00:00:00 is necessary for the time to be interpreted in the local timezone
|
||||||
|
|
Loading…
Reference in New Issue