diff --git a/ui/site/src/userGamesDownload.ts b/ui/site/src/userGamesDownload.ts index cdc4d04efd..81b93b16a6 100644 --- a/ui/site/src/userGamesDownload.ts +++ b/ui/site/src/userGamesDownload.ts @@ -9,8 +9,8 @@ function generateSearchParams(): string { }); ['since', 'until'].forEach(name => { - const minTimestamp = 1356998400070; - const date = $(`#dl-date-${name}`).val() as string; + const minTimestamp = 1356998400070; // 01/01/2013, 01:00:00 + 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; if (date.length == 10) { // the 00:00:00 is necessary for the time to be interpreted in the local timezone