Skip to content

Commit

Permalink
fix secret link rexpiry
Browse files Browse the repository at this point in the history
  • Loading branch information
ianopolous committed Jul 8, 2024
1 parent c0e4de3 commit c0d004a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/drive/SecretLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,7 @@ module.exports = {
let day = parseInt(dateS.split("-")[2]);
let hour = parseInt(expireTimeString.split(":")[0]);
let minute = parseInt(expireTimeString.split(":")[1]);
let jsDate = new Date(year, month-1, day, hour, minute);
let ldt = peergos.client.JsUtil.fromUtcMillis(jsDate.getTime());
return java.util.Optional.of(ldt);
return java.util.Optional.of(java.time.LocalDateTime.of(year, month, day, hour, minute, 0));
},
updateHref: function() {
let that = this;
Expand Down Expand Up @@ -294,4 +292,4 @@ module.exports = {
},
}
}
</script>
</script>

0 comments on commit c0d004a

Please sign in to comment.