Update assets/js/datetime.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
pull/6079/head
Jason Stirnaman 2025-05-27 18:04:29 -05:00 committed by Jason Stirnaman
parent c214ff44a8
commit e3f49f6e47
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ var currentTimestamp = date.toISOString().replace(/^(.*)(\.\d+)(Z)/, '$1$3'); //
var currentTime = date.toISOString().replace(/(^.*T)(.*)(Z)/, '$2') + '084216'; // 12:34:56.000084216
function currentDate(offset = 0, trimTime = false) {
outputDate = new Date(date);
let outputDate = new Date(date);
outputDate.setDate(outputDate.getDate() + offset);
if (trimTime) {