diff --git a/adi_doctools/theme/cosmic/scripts/navigation.js b/adi_doctools/theme/cosmic/scripts/navigation.js index 2faca63..84533b8 100644 --- a/adi_doctools/theme/cosmic/scripts/navigation.js +++ b/adi_doctools/theme/cosmic/scripts/navigation.js @@ -267,8 +267,8 @@ class Navigation { json = JSON.parse(json) let unix_day = new Date(0) - unix_day.setHours(24) - if (json === null || json['timestamp'] + unix_day < Date.now()) { + unix_day.setHours(3) + if (json === null || json['timestamp'] + unix_day.valueOf() < Date.now()) { let metadata = `${this.globalRoot}doctools/metadata.json` fetch(metadata, {